Skip to content

Commit

Permalink
Cleanup: Negate nullptr check in debug log to have it correspond to w…
Browse files Browse the repository at this point in the history
…hether (envoyproxy#24796)

Negate nullptr check in debug log to have it correspond to whether upstream exists.

Risk Level: low

Signed-off-by: Kevin Baichoo <[email protected]>
  • Loading branch information
KBaichoo authored Jan 9, 2023
1 parent bd279ec commit 482e192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/common/tcp_proxy/tcp_proxy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ void Filter::onDownstreamEvent(Network::ConnectionEvent event) {
}

ENVOY_CONN_LOG(trace, "on downstream event {}, has upstream = {}", read_callbacks_->connection(),
static_cast<int>(event), upstream_ == nullptr);
static_cast<int>(event), upstream_ != nullptr);

if (upstream_) {
Tcp::ConnectionPool::ConnectionDataPtr conn_data(upstream_->onDownstreamEvent(event));
Expand Down

0 comments on commit 482e192

Please sign in to comment.