From 4802fedf997186692227fb0d8800b6144ed3283a Mon Sep 17 00:00:00 2001 From: Suet-Fei Li Date: Mon, 21 Oct 2024 12:51:37 -0700 Subject: [PATCH] Add logging for device_name & endpoint_id for OnShareTargetDiscovered & OnShareTargetLost. PiperOrigin-RevId: 688239673 --- sharing/nearby_sharing_service_impl.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sharing/nearby_sharing_service_impl.cc b/sharing/nearby_sharing_service_impl.cc index d2caf13979f..f365c692c9b 100644 --- a/sharing/nearby_sharing_service_impl.cc +++ b/sharing/nearby_sharing_service_impl.cc @@ -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() {