Skip to content

Commit

Permalink
Set custom log level after server started
Browse files Browse the repository at this point in the history
  • Loading branch information
BoomEaro committed Jan 29, 2022
1 parent b77d9b0 commit e089fb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/ru/nanit/limbo/server/LimboServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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() {
Expand Down

0 comments on commit e089fb5

Please sign in to comment.