camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject git commit: [CAMEL-6983] Copy the properties from the PaxLoggingEvent from the local thread
Date Tue, 19 Nov 2013 18:21:12 GMT
Updated Branches:
  refs/heads/camel-2.11.x 5d3f0836b -> 3c6b6c578


[CAMEL-6983] Copy the properties from the PaxLoggingEvent from the local thread


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/3c6b6c57
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/3c6b6c57
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/3c6b6c57

Branch: refs/heads/camel-2.11.x
Commit: 3c6b6c57880aa8e7142af684b71faeea83318935
Parents: 5d3f083
Author: Jean-Baptiste Onofré <jbonofre@apache.org>
Authored: Tue Nov 19 19:00:40 2013 +0100
Committer: Jean-Baptiste Onofré <jbonofre@apache.org>
Committed: Tue Nov 19 19:09:44 2013 +0100

----------------------------------------------------------------------
 .../org/apache/camel/component/paxlogging/PaxLoggingConsumer.java  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/3c6b6c57/components/camel-paxlogging/src/main/java/org/apache/camel/component/paxlogging/PaxLoggingConsumer.java
----------------------------------------------------------------------
diff --git a/components/camel-paxlogging/src/main/java/org/apache/camel/component/paxlogging/PaxLoggingConsumer.java
b/components/camel-paxlogging/src/main/java/org/apache/camel/component/paxlogging/PaxLoggingConsumer.java
index 3352007..a0d8cb1 100644
--- a/components/camel-paxlogging/src/main/java/org/apache/camel/component/paxlogging/PaxLoggingConsumer.java
+++ b/components/camel-paxlogging/src/main/java/org/apache/camel/component/paxlogging/PaxLoggingConsumer.java
@@ -53,6 +53,8 @@ public class PaxLoggingConsumer extends DefaultConsumer implements PaxAppender
{
     }
 
     public void doAppend(final PaxLoggingEvent paxLoggingEvent) {
+        // in order to "force" the copy of the properties (especially the MDC ones) from
the local thread
+        paxLoggingEvent.getProperties();
         executor.execute(new Runnable() {
             public void run() {
                 sendExchange(paxLoggingEvent);


Mime
View raw message