From d2712dafdbd069575b30ebf8f799dfdcb22ab685 Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 19 Sep 2013 08:23:56 -0400 Subject: [PATCH] Format the log messages through MessageFormat. Thanks CovertJaguar for the pointer. Closes #282 --- fml/common/cpw/mods/fml/relauncher/FMLLogFormatter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fml/common/cpw/mods/fml/relauncher/FMLLogFormatter.java b/fml/common/cpw/mods/fml/relauncher/FMLLogFormatter.java index 8c54f028b..9e9fd9ead 100644 --- a/fml/common/cpw/mods/fml/relauncher/FMLLogFormatter.java +++ b/fml/common/cpw/mods/fml/relauncher/FMLLogFormatter.java @@ -5,7 +5,7 @@ * are made available under the terms of the GNU Lesser Public License v2.1 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html - * + * * Contributors: * cpw - implementation */ @@ -37,7 +37,7 @@ final class FMLLogFormatter extends Formatter String name = lvl.getLocalizedName(); if ( name == null ) { - name = lvl.getName(); + name = lvl.getName(); } if ( ( name != null ) && ( name.length() > 0 ) ) @@ -57,7 +57,7 @@ final class FMLLogFormatter extends Formatter { msg.append("[] "); } - msg.append(record.getMessage()); + msg.append(formatMessage(record)); msg.append(LINE_SEPARATOR); Throwable thr = record.getThrown();