You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by GitBox <gi...@apache.org> on 2022/03/15 11:39:20 UTC
[GitHub] [logging-log4j2] ppkarwasz commented on a change in pull request #797: LOG4J2-3393 Improve JsonTemplateLayout performance.
ppkarwasz commented on a change in pull request #797:
URL: https://github.com/apache/logging-log4j2/pull/797#discussion_r826876523
##########
File path: log4j-layout-template-json/src/main/java/org/apache/logging/log4j/layout/template/json/resolver/MessageResolver.java
##########
@@ -134,7 +134,10 @@ private static void resolveString(
jsonWriter.writeObjectStart();
jsonWriter.writeObjectKey(fallbackKey);
}
- if (message instanceof StringBuilderFormattable) {
+ if (message instanceof CharSequence) {
+ final CharSequence sequence = (CharSequence) message;
+ jsonWriter.writeString(sequence);
Review comment:
Is the local variable necessary?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org