From bbb70903ffba54555edd056b5eeec99be1908cfb Mon Sep 17 00:00:00 2001 From: Antony Denyer Date: Fri, 24 Jun 2022 13:28:20 +0100 Subject: [PATCH] Improve logging in NatService (#4006) Improve logging in NatService to clarify what's happening. Increase log severity as it can cause peers to fail to connect when running in k8s. Signed-off-by: Antony Denyer --- nat/src/main/java/org/hyperledger/besu/nat/NatService.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nat/src/main/java/org/hyperledger/besu/nat/NatService.java b/nat/src/main/java/org/hyperledger/besu/nat/NatService.java index cd997d40f3..19ad7d2237 100644 --- a/nat/src/main/java/org/hyperledger/besu/nat/NatService.java +++ b/nat/src/main/java/org/hyperledger/besu/nat/NatService.java @@ -95,10 +95,12 @@ public class NatService { try { getNatManager().orElseThrow().start(); } catch (Exception e) { - LOG.debug( + LOG.warn( "Nat manager failed to configure itself automatically due to the following reason : {}. {}", e.getMessage(), - (fallbackEnabled) ? "NONE mode will be used" : ""); + (fallbackEnabled) + ? "NONE mode will be used as a fallback (set --Xnat-method-fallback-enabled=false to disable)" + : ""); if (fallbackEnabled) { disableNatManager(); } else {