Minor: fix bug in BriefLogFormatter

This commit is contained in:
Mike Hearn 2016-01-28 11:08:49 +00:00 committed by Mike Hearn
parent a355ad14be
commit f51aa73687

View File

@ -39,7 +39,7 @@ class BriefLogFormatter : Formatter() {
arguments[1] = className
arguments[2] = logRecord.sourceMethodName
arguments[3] = Date(logRecord.millis)
arguments[4] = MessageFormat.format(logRecord.message, *logRecord.parameters)
arguments[4] = if (logRecord.parameters != null) MessageFormat.format(logRecord.message, *logRecord.parameters) else logRecord.message
if (logRecord.thrown != null) {
val result = StringWriter()
logRecord.thrown.printStackTrace(PrintWriter(result))