Skip to content

Commit

Permalink
async_tcp_client: fix debug log (envoyproxy#32199)
Browse files Browse the repository at this point in the history
Signed-off-by: ohadvano <[email protected]>
  • Loading branch information
ohadvano authored Feb 8, 2024
1 parent 87fa480 commit 5eaa5f9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/common/tcp/async_tcp_client_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ bool AsyncTcpClientImpl::connect() {
}

void AsyncTcpClientImpl::onConnectTimeout() {
ENVOY_CONN_LOG(debug, "async tcp connection timed out", *connection_);
if (connection_) {
ENVOY_CONN_LOG(debug, "async tcp connection timed out", *connection_);
} else {
ENVOY_LOG(debug, "async tcp client timed out before creating a connection");
}

cluster_info_->trafficStats()->upstream_cx_connect_timeout_.inc();
close(Network::ConnectionCloseType::NoFlush);
}
Expand Down

0 comments on commit 5eaa5f9

Please sign in to comment.