Skip to content

Commit

Permalink
Move potentially spammy peer discovery warn log to debug (#6728)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Dudley <[email protected]>
  • Loading branch information
siladu authored Mar 14, 2024
1 parent 3db0756 commit 6dd3c84
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 6dd3c84

Please sign in to comment.