Skip to content

Commit

Permalink
Fix logger initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
RetGal committed Jun 27, 2024
1 parent c1a6481 commit 70a3dc3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/mpo/dayon/common/log/Log.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ private Log() {

static {
String mode = System.getProperty("dayon.log", "console");
out = mode.equals("file") ? createFileAppender() : new ConsoleAppender();
out = new ConsoleAppender();
if (mode.equals("file")) {
out = createFileAppender();
}
}

private static LogAppender createFileAppender() {
Expand Down

0 comments on commit 70a3dc3

Please sign in to comment.