diff --git a/ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/peers/EnodeURLImpl.java b/ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/peers/EnodeURLImpl.java index 3c00686fe2..726f23626f 100644 --- a/ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/peers/EnodeURLImpl.java +++ b/ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/peers/EnodeURLImpl.java @@ -54,7 +54,8 @@ public class EnodeURLImpl implements EnodeURL { final Optional listeningPort, final Optional discoveryPort) { checkArgument( - nodeId.size() == NODE_ID_SIZE, "Invalid node id. Expected id of length: 64 bytes."); + nodeId.size() == NODE_ID_SIZE, + "Invalid node id of length " + nodeId.size() + ". Expected id of length: 64 bytes."); listeningPort.ifPresent(port -> NetworkUtility.checkPort(port, "listening")); discoveryPort.ifPresent(port -> NetworkUtility.checkPort(port, "discovery")); diff --git a/ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/rlpx/connections/netty/DeFramer.java b/ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/rlpx/connections/netty/DeFramer.java index 5aa8acfaad..63fbd6ea9a 100644 --- a/ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/rlpx/connections/netty/DeFramer.java +++ b/ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/rlpx/connections/netty/DeFramer.java @@ -109,12 +109,12 @@ final class DeFramer extends ByteToMessageDecoder { try { peerInfo = HelloMessage.readFrom(message).getPeerInfo(); } catch (final RLPException e) { - LOG.debug("Received invalid HELLO message", e); + LOG.warn("Received invalid HELLO message, set log level to TRACE for message body", e); connectFuture.completeExceptionally(e); ctx.close(); return; } - LOG.debug("Received HELLO message: {}", peerInfo); + LOG.trace("Received HELLO message: {}", peerInfo); if (peerInfo.getVersion() >= 5) { LOG.trace("Enable compression for p2pVersion: {}", peerInfo.getVersion()); framer.enableCompression();