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:
Antony Denyer
2022-06-24 13:28:20 +01:00
committed by GitHub
parent 755771d22c
commit bbb70903ff

View File

@@ -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 {