diff --git a/ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/PeerDiscoveryAgent.java b/ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/PeerDiscoveryAgent.java index b4505797a70..b93846bfbe1 100644 --- a/ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/PeerDiscoveryAgent.java +++ b/ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/PeerDiscoveryAgent.java @@ -338,10 +338,12 @@ static String deriveHost(final Endpoint sourceEndpoint, final Packet packet) { .findFirst() .orElseGet( () -> { - LOG.trace( - "Ignoring \"From\" endpoint {} in ping packet. Using UDP source host {}", - pingPacketHost.orElse("not specified"), - sourceEndpoint.getHost()); + LOG.atTrace() + .setMessage( + "Ignoring \"From\" endpoint {} in ping packet. Using UDP source host {}") + .addArgument(pingPacketHost.orElse("not specified")) + .addArgument(sourceEndpoint.getHost()) + .log(); return sourceEndpoint.getHost(); }); }