Move potentially spammy peer discovery warn log to debug (#6728)

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
pull/6730/head
Simon Dudley 8 months ago committed by GitHub
parent 3db07568ae
commit 6dd3c84052
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 14
      ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/VertxPeerDiscoveryAgent.java

@ -220,12 +220,14 @@ public class VertxPeerDiscoveryAgent extends PeerDiscoveryAgent {
.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()

Loading…
Cancel
Save