-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use ShortenedThrowableConverter in logback config #279
Conversation
...eai/src/test/java/de/muenchen/refarch/configuration/LogbackJsonLoggingConfigurationTest.java
Outdated
Show resolved
Hide resolved
...eai/src/test/java/de/muenchen/refarch/configuration/LogbackJsonLoggingConfigurationTest.java
Outdated
Show resolved
Hide resolved
...end/src/test/java/de/muenchen/refarch/configuration/LogbackJsonLoggingConfigurationTest.java
Outdated
Show resolved
Hide resolved
...end/src/test/java/de/muenchen/refarch/configuration/LogbackJsonLoggingConfigurationTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it locally and for some reason the JSON-formatted logging is used for all tests when running via mvn test
(not just the ones annotated with the JSON-Logging profile).
On top of that please make sure you apply the following to your code:
- Run formatter via
spotless:apply
- Fix Linter errors from PMD and SpotBugs via
pmd:check
andspotbugs:check
Everything else looks fine to me. 👍
@devtobi PMD reports errors in test sources of refarch-backend, but there's a discrepancy in PMD maven plugin configuration: in refarch-backend tests are explicitely included ( Is this an configuration mistake? If not, I will fix PMD violations in the test sources of the backend. |
This would also be a candidate for a refarch lib or what do you think @devtobi? See it-at-m/refarch#55 |
This is definitely a configuration mistake. Please enable Thanks. :) |
That's fixed now (marked the test with
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now. :)
…gbackJsonLoggingConfigurationTest.java Co-authored-by: DanielOber <[email protected]>
…gbackJsonLoggingConfigurationTest.java Co-authored-by: DanielOber <[email protected]>
…n/LogbackJsonLoggingConfigurationTest.java Co-authored-by: DanielOber <[email protected]>
…n/LogbackJsonLoggingConfigurationTest.java Co-authored-by: DanielOber <[email protected]>
d060e1c
to
ef88498
Compare
@eidottermihi hier gehen auf alle Fälle keine Tests mehr durch https://github.com/jan-niklasml/refarch-templates/actions/runs/11053332432/job/30707454878 |
Description
ensures JSON formatted log lines are not cut off if too long (e.g. on docker with maximum 16kb per line on STDOUT) and breaking log managment tools that rely on proper formatted JSON messages
Reference
Issues #90