Skip to content

Commit

Permalink
[Proxy] Log warning when opening connection to broker fails (apache#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
lhotari authored and nicklixinyang committed Apr 20, 2022
1 parent c4c16ec commit 4dc3986
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ protected void initChannel(SocketChannel ch) {
f.addListener(future -> {
if (!future.isSuccess()) {
// Close the connection if the connection attempt has failed.
log.warn("[{}] Establishing connection to {} ({}) failed. Closing inbound channel.", inboundChannel,
targetBrokerAddress, targetBrokerUrl, future.cause());
inboundChannel.close();
return;
}
Expand Down

0 comments on commit 4dc3986

Please sign in to comment.