Skip to content

Commit 82c2ddf

Browse files
authored
Update StructuredLoggingJsonProperties.java
Signed-off-by: Tyler Gregory <[email protected]>
1 parent 23b821c commit 82c2ddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/structured/StructuredLoggingJsonProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ private boolean hasAnyOtherProperty() {
120120
}
121121

122122
private StandardStackTracePrinter createStandardPrinter() {
123-
StandardStackTracePrinter printer = (root() != Root.FIRST) ? StandardStackTracePrinter.rootFirst()
123+
StandardStackTracePrinter printer = (root() == Root.FIRST) ? StandardStackTracePrinter.rootFirst()
124124
: StandardStackTracePrinter.rootLast();
125125
PropertyMapper map = PropertyMapper.get().alwaysApplyingWhenNonNull();
126126
printer = map.from(this::maxLength).to(printer, StandardStackTracePrinter::withMaximumLength);

0 commit comments

Comments
 (0)