Skip to content

Commit

Permalink
fix/ log level always error
Browse files Browse the repository at this point in the history
  • Loading branch information
topi-banana committed Jan 24, 2025
1 parent 8dec994 commit 814117f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/vulpeus/kyoyu/KyoyuLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ public KyoyuLogger() {
this.consoleLevel = Level.INFO;
}
public void info(Object obj) {
error("{}", obj);
info("{}", obj);
}
public void info(String fmt, Object... objects) {
log(Level.INFO, fmt, objects);
}

public void warn(Object obj) {
error("{}", obj);
warn("{}", obj);
}
public void warn(String fmt, Object... objects) {
log(Level.WARN, fmt, objects);
}

public void debug(Object obj) {
error("{}", obj);
debug("{}", obj);
}
public void debug(String fmt, Object... objects) {
log(Level.DEBUG, fmt, objects);
Expand Down

0 comments on commit 814117f

Please sign in to comment.