Repository: camel
Updated Branches:
  refs/heads/camel-2.19.x 1fae26dd5 -> 9d6bc075a


CAMEL-11896: set CamelLogDebugBodyMaxChars when 0 or negative


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

Branch: refs/heads/camel-2.19.x
Commit: be1e4e20661449e12233bcdd09f01ab9fc669ad1
Parents: 1fae26d
Author: Sam Ma <samuel...@vocus.com.au>
Authored: Mon Oct 16 10:34:07 2017 +1100
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Mon Oct 16 09:28:02 2017 +0200

----------------------------------------------------------------------
 .../org/apache/camel/spring/boot/CamelAutoConfiguration.java     | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/be1e4e20/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelAutoConfiguration.java
----------------------------------------------------------------------
diff --git 
a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelAutoConfiguration.java
 
b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelAutoConfiguration.java
index 37b58e5..a443a56 100644
--- 
a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelAutoConfiguration.java
+++ 
b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelAutoConfiguration.java
@@ -114,9 +114,7 @@ public class CamelAutoConfiguration {
         
camelContext.getShutdownStrategy().setShutdownRoutesInReverseOrder(config.isShutdownRoutesInReverseOrder());
         
camelContext.getShutdownStrategy().setLogInflightExchangesOnTimeout(config.isShutdownLogInflightExchangesOnTimeout());
 
-        if (config.getLogDebugMaxChars() > 0) {
-            
camelContext.getGlobalOptions().put(Exchange.LOG_DEBUG_BODY_MAX_CHARS, "" + 
config.getLogDebugMaxChars());
-        }
+        camelContext.getGlobalOptions().put(Exchange.LOG_DEBUG_BODY_MAX_CHARS, 
"" + config.getLogDebugMaxChars());
 
         // stream caching
         camelContext.setStreamCaching(config.isStreamCachingEnabled());

Reply via email to