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(logging): add ability to filter MDC labels #6430

Merged
merged 5 commits into from
Nov 14, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove mdc after use
  • Loading branch information
codyoss committed Oct 17, 2019
commit dd26744ec4b187ba0e14562f50a70a5b5f405a5d
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,8 @@ public void testAddCustomLoggingEventEnhancers() {
loggingAppender.addLoggingEventEnhancer(CustomLoggingEventEnhancer2.class.getName());
loggingAppender.start();
loggingAppender.doAppend(loggingEvent);

verify(logging);

MDC.remove("mdc1");
Map<String, String> capturedArgumentMap =
capturedArgument.getValue().iterator().next().getLabels();
assertThat(capturedArgumentMap.get("mdc1")).isNull();
Expand Down