Commit 847a9de0 authored by Lambros Lambrou's avatar Lambros Lambrou Committed by Commit Bot

[remoting host] Add logging around route-change events.

This adds some more logging when WebRTC raises a selected-candidate-pair
changed event.

Bug: 1128667
Change-Id: I5629885233b2cd201d2f7b80ff1f78bd6b3803f9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2477476
Auto-Submit: Lambros Lambrou <lambroslambrou@chromium.org>
Commit-Queue: Jamie Walch <jamiewalch@chromium.org>
Reviewed-by: default avatarJamie Walch <jamiewalch@chromium.org>
Cr-Commit-Position: refs/heads/master@{#817748}
parent 831c67da
......@@ -1069,6 +1069,13 @@ void WebrtcTransport::OnIceSelectedCandidatePairChanged(
std::max(CandidateTypeToTransportRouteType(local_candidate.type()),
CandidateTypeToTransportRouteType(remote_candidate.type()));
VLOG(0) << "Selected candidate-pair changed, reason = " << event.reason;
VLOG(0) << " Local IP = " << local_candidate.address().ToString()
<< ", type = " << local_candidate.type()
<< ", protocol = " << local_candidate.protocol();
VLOG(0) << " Remote IP = " << remote_candidate.address().ToString()
<< ", type = " << remote_candidate.type()
<< ", protocol = " << remote_candidate.protocol();
if (!jingle_glue::SocketAddressToIPEndPoint(remote_candidate.address(),
&route.remote_address)) {
LOG(ERROR) << "Failed to convert peer IP address.";
......@@ -1080,6 +1087,7 @@ void WebrtcTransport::OnIceSelectedCandidatePairChanged(
return;
}
VLOG(0) << "Sending route-changed notification.";
event_handler_->OnWebrtcTransportRouteChanged(route);
}
......
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