From e14e43ca6ff867d03b8bb812974876a753060c3d Mon Sep 17 00:00:00 2001 From: "David M. Lloyd" Date: Wed, 27 Feb 2019 17:04:53 -0600 Subject: [PATCH] [LOGMGR-240] Fix infinite recursion for simple message formatting --- .../main/java/org/jboss/logmanager/formatters/Formatters.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/jboss/logmanager/formatters/Formatters.java b/core/src/main/java/org/jboss/logmanager/formatters/Formatters.java index b81cbe01..4aff9fac 100644 --- a/core/src/main/java/org/jboss/logmanager/formatters/Formatters.java +++ b/core/src/main/java/org/jboss/logmanager/formatters/Formatters.java @@ -780,7 +780,7 @@ public static FormatStep simpleMessageFormatStep(final ExtFormatter formatter, f public static FormatStep simpleMessageFormatStep(final ExtFormatter formatter, final boolean leftJustify, final int minimumWidth, final boolean truncateBeginning, final int maximumWidth) { return new JustifyingFormatStep(leftJustify, minimumWidth, truncateBeginning, maximumWidth) { public void renderRaw(Formatter formatter, final StringBuilder builder, final ExtLogRecord record) { - builder.append(formatter.format(record)); + builder.append(formatter.formatMessage(record)); } }; }