Skip to content
/ besu Public
forked from hyperledger/besu

Commit

Permalink
Move potentially spammy peer discovery warn log to debug (hyperledger…
Browse files Browse the repository at this point in the history
…#6728)

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: amsmota <antonio.mota@citi.com>
  • Loading branch information
siladu authored and amsmota committed Apr 16, 2024
1 parent 26d71e4 commit 9ab60db
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,14 @@ protected void handleOutgoingPacketError(
.addArgument(err)
.log();
} else {
LOG.warn(
"Sending to peer {} failed, native error code {}, packet: {}, stacktrace: {}",
peer,
nativeErr.expectedErr(),
wrapBuffer(packet.encode()),
err);
LOG.atDebug()
.setMessage(
"Sending to peer {} failed, native error code {}, packet: {}, stacktrace: {}")
.addArgument(peer)
.addArgument(nativeErr.expectedErr())
.addArgument(wrapBuffer(packet.encode()))
.addArgument(err)
.log();
}
} else if (err instanceof SocketException && err.getMessage().contains("unreachable")) {
LOG.atDebug()
Expand Down

0 comments on commit 9ab60db

Please sign in to comment.