mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Use standard format function to format logs. Addresses BUKKIT-2246
Also fix "excess" Log Levels.
This commit is contained in:
1 parent
161ab5edc6
commit
450edc3004
2 files changed
+3
-3
No files matched your search
@@ -39,11 +39,11 @@ final class ConsoleLogFormatter extends Formatter {
|
||||
stringbuilder.append(" [WARNING] ");
|
||||
} else if (level == Level.SEVERE) {
|
||||
stringbuilder.append(" [SEVERE] ");
|
||||
} else if (level == Level.SEVERE) {
|
||||
} else { // CraftBukkit
|
||||
stringbuilder.append(" [").append(level.getLocalizedName()).append("] ");
|
||||
}
|
||||
|
||||
stringbuilder.append(logrecord.getMessage());
|
||||
stringbuilder.append(formatMessage(logrecord)); // CraftBukkit
|
||||
stringbuilder.append('\n');
|
||||
Throwable throwable = logrecord.getThrown();
|
||||
|
||||
|
||||
Reference in new issue
Block a user