Store the formatted log message, with "{}"s substituted.

This commit is contained in:
bkuker 2014-02-01 17:15:50 -05:00
parent 3724934615
commit 81f5cfee4a
2 changed files with 2 additions and 2 deletions

View File

@ -64,6 +64,6 @@ public class LogbackBufferLoggerAdaptor extends AppenderBase<ILoggingEvent> {
if (e.getThrowableProxy() != null) { if (e.getThrowableProxy() != null) {
t = ((ThrowableProxy) e.getThrowableProxy()).getThrowable(); t = ((ThrowableProxy) e.getThrowableProxy()).getThrowable();
} }
return new LogLine(l, new TraceException(), e.getMessage(), t); return new LogLine(l, new TraceException(), e.getFormattedMessage(), t);
} }
} }

View File

@ -58,7 +58,7 @@ public class SwingStartup {
// Initialize logging first so we can use it // Initialize logging first so we can use it
initializeLogging(); initializeLogging();
log.info("Starting up OpenRocket version " + BuildProperties.getVersion()); log.info("Starting up OpenRocket version {}", BuildProperties.getVersion());
// Check that we're not running headless // Check that we're not running headless
log.info("Checking for graphics head"); log.info("Checking for graphics head");