diff --git a/api/src/main/java/ua/nanit/limbo/server/Logger.java b/api/src/main/java/ua/nanit/limbo/server/Logger.java index c910a3ef..a3de824e 100644 --- a/api/src/main/java/ua/nanit/limbo/server/Logger.java +++ b/api/src/main/java/ua/nanit/limbo/server/Logger.java @@ -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(); } }