This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch CAMEL-12462
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/CAMEL-12462 by this push:
     new 57886f0  CAMEL-12462: Optimise toD to allow components to be 
SendDynamicAware in their producers to use static endpoint and dynamic parts 
provided via headers (pre processor)
57886f0 is described below

commit 57886f04e609d7db693298e6d27483b756b38216
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Mon Apr 23 12:32:38 2018 +0200

    CAMEL-12462: Optimise toD to allow components to be SendDynamicAware in 
their producers to use static endpoint and dynamic parts provided via headers 
(pre processor)
---
 .../main/java/org/apache/camel/processor/SendDynamicProcessor.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/camel-core/src/main/java/org/apache/camel/processor/SendDynamicProcessor.java 
b/camel-core/src/main/java/org/apache/camel/processor/SendDynamicProcessor.java
index 28a7bd7..1735508 100644
--- 
a/camel-core/src/main/java/org/apache/camel/processor/SendDynamicProcessor.java
+++ 
b/camel-core/src/main/java/org/apache/camel/processor/SendDynamicProcessor.java
@@ -121,7 +121,9 @@ public class SendDynamicProcessor extends ServiceSupport 
implements AsyncProcess
                         if (staticUri != null) {
                             preAwareProcessor = 
dynamicAware.createPreProcessor(exchange, entry);
                             postAwareProcessor = 
dynamicAware.createPostProcessor(exchange, entry);
-                            LOG.debug("Optimising toD via SendDynamicAware 
component: {} to use static uri: {}", scheme, staticUri);
+                            if (LOG.isDebugEnabled()) {
+                                LOG.debug("Optimising toD via SendDynamicAware 
component: {} to use static uri: {}", scheme, 
URISupport.sanitizeUri(staticUri));
+                            }
                         }
                     }
                 }

-- 
To stop receiving notification emails like this one, please contact
davscl...@apache.org.

Reply via email to