diff options
author | EdGruberman <ed@rjump.com> | 2012-08-11 16:29:50 -0700 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2012-08-21 19:17:29 -0500 |
commit | 450edc300442a98a82389ed02d9b605d93fa5ecf (patch) | |
tree | ab6ac4ca0697862cac9ac2e1682d907c47c62150 /src/main/java/net/minecraft | |
parent | 161ab5edc67e0cb73a7f2a496b0b957da04e8fbb (diff) | |
download | craftbukkit-450edc300442a98a82389ed02d9b605d93fa5ecf.tar craftbukkit-450edc300442a98a82389ed02d9b605d93fa5ecf.tar.gz craftbukkit-450edc300442a98a82389ed02d9b605d93fa5ecf.tar.lz craftbukkit-450edc300442a98a82389ed02d9b605d93fa5ecf.tar.xz craftbukkit-450edc300442a98a82389ed02d9b605d93fa5ecf.zip |
Use standard format function to format logs. Addresses BUKKIT-2246
Also fix "excess" Log Levels.
Diffstat (limited to 'src/main/java/net/minecraft')
-rw-r--r-- | src/main/java/net/minecraft/server/ConsoleLogFormatter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/ConsoleLogFormatter.java b/src/main/java/net/minecraft/server/ConsoleLogFormatter.java index 943bb952..6a58493c 100644 --- a/src/main/java/net/minecraft/server/ConsoleLogFormatter.java +++ b/src/main/java/net/minecraft/server/ConsoleLogFormatter.java @@ -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(); |