From 6dd3c840523bbc23f5ef97ab2e38e5a7a5a706c8 Mon Sep 17 00:00:00 2001 From: Simon Dudley Date: Thu, 14 Mar 2024 15:48:07 +1000 Subject: [PATCH] Move potentially spammy peer discovery warn log to debug (#6728) Signed-off-by: Simon Dudley --- .../p2p/discovery/VertxPeerDiscoveryAgent.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/VertxPeerDiscoveryAgent.java b/ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/VertxPeerDiscoveryAgent.java index ef098896a61..0c989021638 100644 --- a/ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/VertxPeerDiscoveryAgent.java +++ b/ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/VertxPeerDiscoveryAgent.java @@ -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()