Skip to content

Commit 4f34077

Browse files
committed
Fix StatusLoggerExtension message formatting
1 parent d717857 commit 4f34077

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

log4j-api-test/src/main/java/org/apache/logging/log4j/test/junit/StatusLoggerExtension.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,10 @@ public void handleException(final ExtensionContext context, final Throwable thro
152152
logger.atLevel(data.getLevel())
153153
.withThrowable(data.getThrowable())
154154
.withLocation(data.getStackTraceElement())
155-
.log("{} {}", formatter.format(Instant.ofEpochMilli(data.getTimestamp())), data.getMessage());
155+
.log(
156+
"{} {}",
157+
formatter.format(Instant.ofEpochMilli(data.getTimestamp())),
158+
data.getMessage().getFormattedMessage());
156159
});
157160
}
158161
}

0 commit comments

Comments
 (0)