Merge pull request #178 from bkuker/slf-message-fix

Fix SLF "{}" substitution in Debug log & Error reports
This commit is contained in:
Bill Kuker 2014-02-01 17:13:42 -08:00
commit ba4056b99c
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) {
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
initializeLogging();
log.info("Starting up OpenRocket version " + BuildProperties.getVersion());
log.info("Starting up OpenRocket version {}", BuildProperties.getVersion());
// Check that we're not running headless
log.info("Checking for graphics head");