Merge pull request #178 from bkuker/slf-message-fix
Fix SLF "{}" substitution in Debug log & Error reports
This commit is contained in:
commit
ba4056b99c
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user