mirror of
https://github.com/vacp2p/linea-besu.git
synced 2026-01-09 07:27:55 -05:00
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 <git@antonydenyer.co.uk>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user