From 021d0a18a56154539ecb96bbd06a1baea734578c Mon Sep 17 00:00:00 2001 From: Nanit Date: Mon, 7 Feb 2022 11:31:37 +0200 Subject: [PATCH] Fixed logging --- src/main/java/ru/nanit/limbo/configuration/LimboConfig.java | 2 +- src/main/java/ru/nanit/limbo/server/Logger.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/ru/nanit/limbo/configuration/LimboConfig.java b/src/main/java/ru/nanit/limbo/configuration/LimboConfig.java index d5d0da41..f69572f5 100644 --- a/src/main/java/ru/nanit/limbo/configuration/LimboConfig.java +++ b/src/main/java/ru/nanit/limbo/configuration/LimboConfig.java @@ -64,7 +64,7 @@ public final class LimboConfig { private InfoForwarding infoForwarding; private long readTimeout; - private int debugLevel = 3; + private int debugLevel; private boolean useEpoll; private int bossGroupSize; diff --git a/src/main/java/ru/nanit/limbo/server/Logger.java b/src/main/java/ru/nanit/limbo/server/Logger.java index 91deb178..14a120d0 100644 --- a/src/main/java/ru/nanit/limbo/server/Logger.java +++ b/src/main/java/ru/nanit/limbo/server/Logger.java @@ -23,7 +23,7 @@ public final class Logger { private static final DateTimeFormatter FORMATTER = DateTimeFormatter.ofPattern("hh:mm:ss"); - private static int debugLevel = Level.ERROR.getIndex(); + private static int debugLevel = Level.INFO.getIndex(); private Logger() {} @@ -78,8 +78,8 @@ public enum Level { ERROR("ERROR", 0), WARNING("WARNING", 1), - INFO ("INFO", 2), - DEBUG ("DEBUG", 3); + INFO("INFO", 2), + DEBUG("DEBUG", 3); private final String display; private final int index;