Add logging for device_name & endpoint_id for OnShareTargetDiscovered & OnShareTargetLost.

PiperOrigin-RevId: 688302872
This commit is contained in:
Suet-Fei Li
2024-10-21 15:59:58 -07:00
committed by Copybara-Service
parent 042835cd9d
commit b9bb7c9da9
+6 -3
View File
@@ -1831,8 +1831,9 @@ void NearbySharingServiceImpl::OnOutgoingDecryptedCertificate(
entry.second.OnShareTargetDiscovered(*share_target);
}
VLOG(1) << __func__ << ": Reported OnShareTargetDiscovered at timestamp: "
<< (context_->GetClock()->Now() - scanning_start_timestamp_);
VLOG(1) << __func__ << ": Reported OnShareTargetDiscovered: share_target.id="
<< share_target->id << " device_name=" << share_target->device_name
<< " endpoint_id=" << endpoint_id << " to all send surfaces.";
FinishEndpointDiscoveryEvent();
}
@@ -2378,7 +2379,9 @@ void NearbySharingServiceImpl::RemoveOutgoingShareTargetAndReportLost(
}
VLOG(1) << __func__
<< ": Reported OnShareTargetLost for EndpointId: " << endpoint_id;
<< ": Reported OnShareTargetLost for EndpointId: " << endpoint_id
<< " share target.id=" << share_target_opt->id
<< " share target.device_name=" << share_target_opt->device_name;
}
void NearbySharingServiceImpl::OnTransferComplete() {