Adding logs to track potential cause of not starting port allocation.
R=deadbeef@webrtc.org, pthatcher@webrtc.org Review URL: https://codereview.webrtc.org/2324853002 . Cr-Commit-Position: refs/heads/master@{#14244}
This commit is contained in:
parent
fb2c1d0636
commit
9ecb08576e
@ -310,6 +310,9 @@ TransportChannelState P2PTransportChannel::ComputeState() const {
|
||||
|
||||
void P2PTransportChannel::SetIceParameters(const IceParameters& ice_params) {
|
||||
ASSERT(worker_thread_ == rtc::Thread::Current());
|
||||
LOG(LS_INFO) << "Set ICE ufrag: " << ice_params.ufrag
|
||||
<< " pwd: " << ice_params.pwd << " on transport "
|
||||
<< transport_name();
|
||||
ice_parameters_ = ice_params;
|
||||
// Note: Candidate gathering will restart when MaybeStartGathering is next
|
||||
// called.
|
||||
@ -434,6 +437,9 @@ const IceConfig& P2PTransportChannel::config() const {
|
||||
|
||||
void P2PTransportChannel::MaybeStartGathering() {
|
||||
if (ice_parameters_.ufrag.empty() || ice_parameters_.pwd.empty()) {
|
||||
LOG(LS_ERROR) << "Cannot gather candidates because ICE parameters are empty"
|
||||
<< " ufrag: " << ice_parameters_.ufrag
|
||||
<< " pwd: " << ice_parameters_.pwd;
|
||||
return;
|
||||
}
|
||||
// Start gathering if we never started before, or if an ICE restart occurred.
|
||||
|
||||
@ -474,6 +474,7 @@ bool TransportController::SetLocalTransportDescription_n(
|
||||
SetIceRole(new_ice_role);
|
||||
}
|
||||
|
||||
LOG(LS_INFO) << "Set local transport description on " << transport_name;
|
||||
return transport->SetLocalTransportDescription(tdesc, action, err);
|
||||
}
|
||||
|
||||
@ -493,6 +494,7 @@ bool TransportController::SetRemoteTransportDescription_n(
|
||||
return true;
|
||||
}
|
||||
|
||||
LOG(LS_INFO) << "Set remote transport description on " << transport_name;
|
||||
return transport->SetRemoteTransportDescription(tdesc, action, err);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user