Skip to content
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

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

morgen-peschke
Copy link
Contributor

@morgen-peschke morgen-peschke commented Jun 14, 2024

Updates the handling of the MDC in Slf4jLogger to resolve questions raised in #851

Changes:

  • Always clear the MDC before populating when logging with context
  • Don't skip the MDC massaging when logging without context

Checks:

  • laziness of msg parameter
  • dispatch to log4j Logger messages
  • MDC setup/restoration
  • MDC recovery when exceptions happen during message creation

Checks:
- laziness of `msg` parameter
- dispatch to log4j Logger messages
- MDC setup
@morgen-peschke morgen-peschke changed the title Expand test coverage of Slf4jLogger Fix MDC handling in Slf4jLogger Jun 26, 2024
@morgen-peschke
Copy link
Contributor Author

Quick ping to help prevent this from disappearing into the ether 😉

@morgen-peschke
Copy link
Contributor Author

@rossabaker I'm not able to add reviewers, can you add a couple of people?

@rossabaker rossabaker requested a review from a team September 19, 2024 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant