You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by vy...@apache.org on 2024/11/08 09:58:42 UTC

(logging-log4j2) branch 2.x updated: Fix code typo in the thread context docs (#3186)

This is an automated email from the ASF dual-hosted git repository.

vy pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/2.x by this push:
     new 5afb86cc5f Fix code typo in the thread context docs (#3186)
5afb86cc5f is described below

commit 5afb86cc5f89ffc1c41c63df09b0b297096acc85
Author: Max Aller <al...@amazon.com>
AuthorDate: Fri Nov 8 01:58:37 2024 -0800

    Fix code typo in the thread context docs (#3186)
---
 src/site/antora/modules/ROOT/pages/manual/thread-context.adoc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/site/antora/modules/ROOT/pages/manual/thread-context.adoc b/src/site/antora/modules/ROOT/pages/manual/thread-context.adoc
index 31f34849db..7262c4ca9d 100644
--- a/src/site/antora/modules/ROOT/pages/manual/thread-context.adoc
+++ b/src/site/antora/modules/ROOT/pages/manual/thread-context.adoc
@@ -104,8 +104,8 @@ List<String> ndc = ThreadContext.getImmutableStack().asList(); // <1>
 
 executor.submit(() -> {
     try (CloseableThreadContext.Instance ignored = CloseableThreadContext
-            .putAll(values) // <2>
-            .pushAll(messages)) { // <2>
+            .putAll(mdc) // <2>
+            .pushAll(ndc)) { // <2>
 
         LOGGER.debug("Processing for user started");
         // ...