Skip to content

Commit

Permalink
inc stacktrace on disconnect
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Frame <jason.frame@consensys.net>
  • Loading branch information
jframe committed Jun 21, 2024
1 parent e010f87 commit 7005741
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -427,14 +427,15 @@ public void handleDisconnect(
final boolean initiatedByPeer) {
final boolean wasActiveConnection = ethPeers.registerDisconnect(connection);
LOG.atDebug()
.setMessage("Disconnect - active Connection? {} - {} - {} {} - {} {} - {} peers left")
.setMessage("Disconnect - active Connection? {} - {} - {} {} - {} {} - {} peers left, stack {}")
.addArgument(wasActiveConnection)
.addArgument(initiatedByPeer ? "Inbound" : "Outbound")
.addArgument(reason::getValue)
.addArgument(reason::name)
.addArgument(() -> connection.getPeer().getLoggableId())
.addArgument(() -> connection.getPeerInfo().getClientId())
.addArgument(ethPeers::peerCount)
.addArgument(Thread.currentThread().getStackTrace())
.log();
LOG.atTrace().setMessage("{}").addArgument(ethPeers::toString).log();
}
Expand Down

0 comments on commit 7005741

Please sign in to comment.