camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject [1/2] git commit: [CAMEL-6983] Be sure to get the PaxLoggingEvent properties from the local thread
Date Tue, 19 Nov 2013 17:21:34 GMT
Updated Branches:
  refs/heads/master 4f06ebaec -> c1616bcfa


[CAMEL-6983] Be sure to get the PaxLoggingEvent properties 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/33f1fca0
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/33f1fca0
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/33f1fca0

Branch: refs/heads/master
Commit: 33f1fca0ce3895f6f21226c1e52fdb78a533acd7
Parents: 8fe106b
Author: Jean-Baptiste Onofré <jbonofre@apache.org>
Authored: Tue Nov 19 18:17:34 2013 +0100
Committer: Jean-Baptiste Onofré <jbonofre@apache.org>
Committed: Tue Nov 19 18:17:34 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/33f1fca0/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 7e9b44d..51eb2dc 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 properties (especially the MDC ones) in the local
thread
+        paxLoggingEvent.getProperties();
         executor.execute(new Runnable() {
             public void run() {
                 sendExchange(paxLoggingEvent);


Mime
View raw message