Skip to content

Commit

Permalink
Add logging for device_name & endpoint_id for OnShareTargetDiscovered…
Browse files Browse the repository at this point in the history
… & OnShareTargetLost.

PiperOrigin-RevId: 688239673
  • Loading branch information
suetfei authored and copybara-github committed Oct 21, 2024
1 parent 042835c commit 4802fed
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions sharing/nearby_sharing_service_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 4802fed

Please sign in to comment.