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

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


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

commit 539e008ffc8b4dcdba7791db30aec2777d4c1188
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");
         // ...

Reply via email to