Skip to content

Commit

Permalink
Remove new line from Logger
Browse files Browse the repository at this point in the history
  • Loading branch information
bivashy committed Oct 1, 2023
1 parent 30cf08e commit 2ed12a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/src/main/java/ua/nanit/limbo/server/Logger.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public static void error(Object msg, Throwable t, Object... args) {

public static void print(Level level, Object msg, Throwable t, Object... args) {
if (debugLevel >= level.getIndex()) {
System.out.printf("%s: %s%n", getPrefix(level), String.format(msg.toString(), args));
String output = String.format("%s: %s", getPrefix(level), String.format(msg.toString(), args));
System.out.print(output);
if (t != null) t.printStackTrace();
}
}
Expand Down

0 comments on commit 2ed12a8

Please sign in to comment.