Configure logback to always log exception messages in a specific field#495
Configure logback to always log exception messages in a specific field#495
Conversation
📝 WalkthroughWalkthroughThe pull request simplifies exception logging by removing the explicit use of the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/main/resources/logback.xml`:
- Around line 18-20: The logback config uses an invalid JsonProvider element
`<throwableMessage>` inside the LoggingEventCompositeJsonEncoder setup; remove
the `<throwableMessage>` block so only supported providers remain (e.g., keep
`<stackTrace/>` which already emits exception text), ensuring the encoder
configuration only contains valid providers for logstash-logback-encoder 9.0;
verify the encoder element `LoggingEventCompositeJsonEncoder` and existing
`stackTrace` provider are left intact and no other custom provider references
the removed `<throwableMessage>`.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: e432bd2e-a71d-490e-a96e-20544a9b6dda
📒 Files selected for processing (3)
src/main/java/com/github/stickerifier/stickerify/bot/Stickerify.javasrc/main/java/com/github/stickerifier/stickerify/logger/StructuredLogger.javasrc/main/resources/logback.xml
💤 Files with no reviewable changes (1)
- src/main/java/com/github/stickerifier/stickerify/logger/StructuredLogger.java
Summary by CodeRabbit