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:01:29 GMT
Updated Branches:
  refs/heads/camel-2.12.x 88e0a4af0 -> d89e76f81


[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/d89e76f8
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/d89e76f8
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/d89e76f8

Branch: refs/heads/camel-2.12.x
Commit: d89e76f816acef449610291629759ae86fb7a602
Parents: 88e0a4a
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:00:40 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/d89e76f8/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..d6e5835 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