gfe-relnote: (n/a) To better debug b/148151124, improve the error log when bind() failed in QuicClientEpollNetworkHelper. Logging only. PiperOrigin-RevId: 291166058 Change-Id: I5a6b911170581ccdc59bf0f7422f5a07fbcd782b
diff --git a/quic/tools/quic_client_epoll_network_helper.cc b/quic/tools/quic_client_epoll_network_helper.cc index 60d04c7..a36781a 100644 --- a/quic/tools/quic_client_epoll_network_helper.cc +++ b/quic/tools/quic_client_epoll_network_helper.cc
@@ -77,7 +77,10 @@ sockaddr_storage addr = client_address.generic_address(); int rc = bind(fd, reinterpret_cast<sockaddr*>(&addr), sizeof(addr)); if (rc < 0) { - QUIC_LOG(ERROR) << "Bind failed: " << strerror(errno); + QUIC_LOG(ERROR) << "Bind failed: " << strerror(errno) + << " bind_to_address:" << bind_to_address + << ", bind_to_port:" << bind_to_port + << ", client_address:" << client_address; return false; }