Skip to content

Commit

Permalink
Add remote address into debug log for TLS error (#21280)
Browse files Browse the repository at this point in the history
Signed-off-by: bozhang <bozhang@ebay.com>
  • Loading branch information
zhangbo1882 authored May 16, 2022
1 parent 6cc4d1a commit 6df56d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/extensions/transport_sockets/tls/ssl_socket.cc
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ void SslSocket::drainErrorQueue() {
absl::NullSafeStringView(ERR_reason_error_string(err))));
}
if (!failure_reason_.empty()) {
ENVOY_CONN_LOG(debug, "{}", callbacks_->connection(), failure_reason_);
ENVOY_CONN_LOG(debug, "remote address:{},{}", callbacks_->connection(),
callbacks_->connection().connectionInfoProvider().remoteAddress()->asString(),
failure_reason_);
}
if (saw_error && !saw_counted_error) {
ctx_->stats().connection_error_.inc();
Expand Down

0 comments on commit 6df56d0

Please sign in to comment.