mirror of
https://github.com/corda/corda.git
synced 2024-12-19 04:57:58 +00:00
Minor: fix bug in BriefLogFormatter
This commit is contained in:
parent
a355ad14be
commit
f51aa73687
@ -39,7 +39,7 @@ class BriefLogFormatter : Formatter() {
|
|||||||
arguments[1] = className
|
arguments[1] = className
|
||||||
arguments[2] = logRecord.sourceMethodName
|
arguments[2] = logRecord.sourceMethodName
|
||||||
arguments[3] = Date(logRecord.millis)
|
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) {
|
if (logRecord.thrown != null) {
|
||||||
val result = StringWriter()
|
val result = StringWriter()
|
||||||
logRecord.thrown.printStackTrace(PrintWriter(result))
|
logRecord.thrown.printStackTrace(PrintWriter(result))
|
||||||
|
Loading…
Reference in New Issue
Block a user