Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2563E10650 for ; Tue, 19 Nov 2013 18:21:14 +0000 (UTC) Received: (qmail 69597 invoked by uid 500); 19 Nov 2013 18:21:13 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 69567 invoked by uid 500); 19 Nov 2013 18:21:12 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 69560 invoked by uid 99); 19 Nov 2013 18:21:12 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Nov 2013 18:21:12 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 78703880354; Tue, 19 Nov 2013 18:21:12 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: jbonofre@apache.org To: commits@camel.apache.org Message-Id: <13150f164de940489d798a0f0eadfa14@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: [CAMEL-6983] Copy the properties from the PaxLoggingEvent from the local thread Date: Tue, 19 Nov 2013 18:21:12 +0000 (UTC) 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é Authored: Tue Nov 19 19:00:40 2013 +0100 Committer: Jean-Baptiste Onofré 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);