diff --git a/src/main/java/ru/nanit/limbo/server/LimboServer.java b/src/main/java/ru/nanit/limbo/server/LimboServer.java index bacbdae2..8cd38f7d 100644 --- a/src/main/java/ru/nanit/limbo/server/LimboServer.java +++ b/src/main/java/ru/nanit/limbo/server/LimboServer.java @@ -67,8 +67,6 @@ public void start() throws Exception { config = new LimboConfig(Paths.get("./")); config.load(); - Logger.setLevel(config.getDebugLevel()); - dimensionRegistry = new DimensionRegistry(this); dimensionRegistry.load(config.getDimensionType()); connections = new Connections(); @@ -82,6 +80,8 @@ public void start() throws Exception { Runtime.getRuntime().addShutdownHook(new Thread(this::stop, "NanoLimbo shutdown thread")); Logger.info("Server started on %s", config.getAddress()); + + Logger.setLevel(config.getDebugLevel()); } private void startBootstrap() {