aboutsummaryrefslogtreecommitdiff
path: root/p2p/base/stun_port.cc
diff options
context:
space:
mode:
Diffstat (limited to 'p2p/base/stun_port.cc')
-rw-r--r--p2p/base/stun_port.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/p2p/base/stun_port.cc b/p2p/base/stun_port.cc
index 7a76af5fa1..7b1a2a83a2 100644
--- a/p2p/base/stun_port.cc
+++ b/p2p/base/stun_port.cc
@@ -306,7 +306,9 @@ int UDPPort::SendTo(const void* data,
if (send_error_count_ < kSendErrorLogLimit) {
++send_error_count_;
RTC_LOG(LS_ERROR) << ToString() << ": UDP send of " << size
- << " bytes failed with error " << error_;
+ << " bytes to host " << addr.ToSensitiveString() << " ("
+ << addr.ToResolvedSensitiveString()
+ << ") failed with error " << error_;
}
} else {
send_error_count_ = 0;
@@ -593,7 +595,11 @@ void UDPPort::OnSendPacket(const void* data, size_t size, StunRequest* req) {
options.info_signaled_after_sent.packet_type = rtc::PacketType::kStunMessage;
CopyPortInformationToPacketInfo(&options.info_signaled_after_sent);
if (socket_->SendTo(data, size, sreq->server_addr(), options) < 0) {
- RTC_LOG_ERR_EX(LERROR, socket_->GetError()) << "sendto";
+ RTC_LOG_ERR_EX(LERROR, socket_->GetError())
+ << "UDP send of " << size << " bytes to host "
+ << sreq->server_addr().ToSensitiveString() << " ("
+ << sreq->server_addr().ToResolvedSensitiveString()
+ << ") failed with error " << error_;
}
stats_.stun_binding_requests_sent++;
}