You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Print RuntimeException raised by StructuredLogFormatter::format to system err
Before this commit, runtime exception is swallowed silently.
For example, if two `StructuredLoggingJsonMembersCustomizer` add same key, exception is printed now:
```
Exception in thread "main" java.lang.IllegalStateException: The name 'test' has already been written
at org.springframework.util.Assert.state(Assert.java:101)
at org.springframework.boot.json.JsonValueWriter.writePair(JsonValueWriter.java:228)
at org.springframework.boot.json.JsonValueWriter.write(JsonValueWriter.java:83)
at org.springframework.boot.json.JsonWriter$Member.write(JsonWriter.java:650)
at org.springframework.boot.json.JsonWriter$Members.write(JsonWriter.java:339)
```
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/structured/JsonWriterStructuredLogFormatter.java
0 commit comments