Skip to content
Merged
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ public static ThreadLocalMap setupLog4j() {
mdcField.set(null, mdc);

} catch (Exception e) {
LOG.warn("Cannot set log4j global MDC, mdcContext won't be applied to log4j's MDC class", e);
if (LOG.isDebugEnabled()) {
LOG.debug("Cannot set log4j global MDC, mdcContext won't be applied to log4j's MDC class", e);
} else {
LOG.warn("Cannot set log4j global MDC, mdcContext won't be applied to log4j's MDC class: {}", e.getMessage());
}
}

return mdcContext;
Expand Down