This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 3c17d1dba790 camel-mdc: the log pattern example uses the header key
the example sets (#30549)
3c17d1dba790 is described below
commit 3c17d1dba790f914abaee2c35000e083b4d190d5
Author: Claus Ibsen <[email protected]>
AuthorDate: Sat Nov 21 10:54:54 2026 +0100
camel-mdc: the log pattern example uses the header key the example sets
(#30549)
The log4j2 pattern referred to customHead and customProp, which the
example never sets. Use myCustomMDCKey, the header set just above it.
Spotted by Andreas Jonsson in #29884.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Claus Ibsen <[email protected]>
---
.../src/generated/resources/org/apache/camel/catalog/docs/mdc.adoc | 2 +-
components/camel-mdc/src/main/docs/mdc.adoc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/mdc.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/mdc.adoc
index 6c574ab9955a..11b3ac14d642 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/mdc.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/mdc.adoc
@@ -43,7 +43,7 @@ Depending on the logging technology used, you can now include
the MDC parameters
[source,text]
----
-... [%X{camel.contextId}, %X{camel.routeId}, %X{camel.exchangeId},
%X{camel.messageId}, %X{customHead}, %X{customProp}]
+... [%X{camel.contextId}, %X{camel.routeId}, %X{camel.exchangeId},
%X{camel.messageId}, %X{myCustomMDCKey}]
----
During the execution you can verify the output of the log to see the traces
appended to your logger.
diff --git a/components/camel-mdc/src/main/docs/mdc.adoc
b/components/camel-mdc/src/main/docs/mdc.adoc
index 6c574ab9955a..11b3ac14d642 100644
--- a/components/camel-mdc/src/main/docs/mdc.adoc
+++ b/components/camel-mdc/src/main/docs/mdc.adoc
@@ -43,7 +43,7 @@ Depending on the logging technology used, you can now include
the MDC parameters
[source,text]
----
-... [%X{camel.contextId}, %X{camel.routeId}, %X{camel.exchangeId},
%X{camel.messageId}, %X{customHead}, %X{customProp}]
+... [%X{camel.contextId}, %X{camel.routeId}, %X{camel.exchangeId},
%X{camel.messageId}, %X{myCustomMDCKey}]
----
During the execution you can verify the output of the log to see the traces
appended to your logger.