-
-
Notifications
You must be signed in to change notification settings - Fork 444
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
Fixed NPE when MDC contains null values. #1364
Conversation
@donbeave thanks for contributing. |
Codecov Report
@@ Coverage Diff @@
## main #1364 +/- ##
============================================
- Coverage 75.70% 75.69% -0.01%
- Complexity 1854 1858 +4
============================================
Files 185 185
Lines 6355 6362 +7
Branches 635 635
============================================
+ Hits 4811 4816 +5
- Misses 1256 1258 +2
Partials 288 288
Continue to review full report at Codecov.
|
Co-authored-by: Manoel Aranda Neto <[email protected]>
final Map<String, String> mdcProperties = | ||
CollectionUtils.shallowCopy(loggingEvent.getMDCPropertyMap()); | ||
loggingEvent.getMDCPropertyMap().entrySet().stream() |
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.
mind doing the same fix for log4j2 SentryAdapter? it's pretty much the same thing.
This is a fix for this issue: #1361.