From 85f0a1c33f2b81d529cd7b6de4272d0832cd4a57 Mon Sep 17 00:00:00 2001 From: Guogang Li Date: Tue, 22 Jul 2025 10:39:22 -0700 Subject: [PATCH] Log medium for lost endpoint PiperOrigin-RevId: 785911332 --- connections/implementation/base_pcp_handler.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/connections/implementation/base_pcp_handler.cc b/connections/implementation/base_pcp_handler.cc index 04705a7f..6f47e1e1 100644 --- a/connections/implementation/base_pcp_handler.cc +++ b/connections/implementation/base_pcp_handler.cc @@ -1744,7 +1744,10 @@ void BasePcpHandler::OnEndpointFound( void BasePcpHandler::OnEndpointLost( ClientProxy* client, const BasePcpHandler::DiscoveredEndpoint& endpoint) { // Look up the DiscoveredEndpoint we have in our cache. - NEARBY_LOGS(INFO) << "OnEndpointLost: id=" << endpoint.endpoint_id; + NEARBY_LOGS(INFO) << "OnEndpointLost: id=" << endpoint.endpoint_id + << " on medium=" + << location::nearby::proto::connections::Medium_Name( + endpoint.medium); MutexLock lock(&discovered_endpoint_mutex_); auto range = discovered_endpoints_.equal_range(endpoint.endpoint_id); bool is_range_empty = range.first == range.second;