ppkarwasz commented on code in PR #3469:
URL: https://github.com/apache/logging-log4j2/pull/3469#discussion_r1960624210


##########
log4j-core/src/main/java/org/apache/logging/log4j/core/util/internal/instant/InstantPatternDynamicFormatter.java:
##########
@@ -239,7 +239,11 @@ private static List<PatternSequence> sequencePattern(final 
String pattern) {
                 final PatternSequence sequence;
                 switch (c) {
                     case 's':
-                        sequence = new SecondPatternSequence(true, "", 0);
+                        if (sequenceContent.length() == 2) {
+                            sequence = new SecondPatternSequence(true, "", 0);
+                        } else {
+                            sequence = new 
DynamicPatternSequence(sequenceContent);
+                        }

Review Comment:
   Fixed in 
https://github.com/apache/logging-log4j2/pull/3469/commits/34597ddf1c87294da6b1e7e6a544fc355de66d9d



-- 
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-unsubscr...@logging.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to