-
Notifications
You must be signed in to change notification settings - Fork 75
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
Fix MDC handling in Slf4jLogger #850
Fix MDC handling in Slf4jLogger #850
Conversation
Checks: - laziness of `msg` parameter - dispatch to log4j Logger messages - MDC setup
slf4j/src/test/scala/org/typelevel/log4cats/slf4j/internal/Slf4jLoggerInternalSuite.scala
Outdated
Show resolved
Hide resolved
MDC leaks into context when logging without context, because it doesn't go through the codepath that clears the MDC before logging
This is used to make sure that the MDC manipulation all happens on the same thread.
Quick ping to help prevent this from disappearing into the ether 😉 |
@rossabaker I'm not able to add reviewers, can you add a couple of people? |
@rossabaker @danicheg any chance of this getting reviewed? |
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 was a little surprised that the imports can be mixed between *
and _
styles. Might be good to follow up to switch entirely to *
for consistency, but absolutely not blocking this PR.
Updates the handling of the MDC in
Slf4jLogger
to resolve questions raised in #851Changes:
Checks:
msg
parameter