-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
documentationPull requests or issues that affect documentationPull requests or issues that affect documentation
Description
Description
On this page (in source), this example is given:
LOGGER.debug("Starting background thread for user");
Map<String, String> mdc = ThreadContext.getImmutableContext(); // (1)
List<String> ndc = ThreadContext.getImmutableStack().asList(); // (1)
executor.submit(() -> {
try (CloseableThreadContext.Instance ignored = CloseableThreadContext
.putAll(values) // (2)
.pushAll(messages)) { // (2)
LOGGER.debug("Processing for user started");
// ...
}
});
However...there's no connection between the (1) and (2) items. Is values supposed to be mdc, and messages should be ndc?
Metadata
Metadata
Assignees
Labels
documentationPull requests or issues that affect documentationPull requests or issues that affect documentation