Commit a72b2474 authored by Kyle Horimoto's avatar Kyle Horimoto Committed by Commit Bot

[CrOS PhoneHub] Add a few Nearby-related debug logs

Will be useful while debugging Nearby Connections issues

Bug: 1106937
Change-Id: I07c65eea9a9da1ef3c5d6a300219ee80ece9d622
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2523906
Auto-Submit: Kyle Horimoto <khorimoto@chromium.org>
Reviewed-by: default avatarJames Vecore <vecore@google.com>
Commit-Queue: Kyle Horimoto <khorimoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#825196}
parent afa6988c
...@@ -129,6 +129,9 @@ void NearbyConnectorImpl::ProcessQueuedConnectionRequests() { ...@@ -129,6 +129,9 @@ void NearbyConnectorImpl::ProcessQueuedConnectionRequests() {
} }
void NearbyConnectorImpl::OnNearbyProcessStopped() { void NearbyConnectorImpl::OnNearbyProcessStopped() {
PA_LOG(WARNING) << "Nearby process stopped unexpectedly. Destroying active "
<< "connections.";
ClearActiveAndPendingConnections(); ClearActiveAndPendingConnections();
ProcessQueuedConnectionRequests(); ProcessQueuedConnectionRequests();
} }
......
...@@ -75,6 +75,8 @@ void NearbyEndpointFinderImpl::PerformFindEndpoint() { ...@@ -75,6 +75,8 @@ void NearbyEndpointFinderImpl::PerformFindEndpoint() {
void NearbyEndpointFinderImpl::OnEndpointFound(const std::string& endpoint_id, void NearbyEndpointFinderImpl::OnEndpointFound(const std::string& endpoint_id,
DiscoveredEndpointInfoPtr info) { DiscoveredEndpointInfoPtr info) {
PA_LOG(VERBOSE) << "Found endpoint with ID " << endpoint_id
<< ", stopping discovery";
nearby_connections_->StopDiscovery( nearby_connections_->StopDiscovery(
mojom::kServiceId, mojom::kServiceId,
base::BindOnce(&NearbyEndpointFinderImpl::OnStopDiscoveryResult, base::BindOnce(&NearbyEndpointFinderImpl::OnStopDiscoveryResult,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment