camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [1/4] camel git commit: CAMEL-11896: set CamelLogDebugBodyMaxChars when 0 or negative
Date Mon, 16 Oct 2017 07:27:30 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.20.x 0fe49998e -> 43f2d5f02
  refs/heads/master 1846275e7 -> 4a656a232


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

Branch: refs/heads/master
Commit: 9b8116d02bb24ceef888f162209a3d462d4c4976
Parents: 1846275
Author: Sam Ma <samuel.ma@vocus.com.au>
Authored: Mon Oct 16 10:34:07 2017 +1100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Mon Oct 16 09:18:12 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/9b8116d0/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 009f3fa..b5b3e76 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
@@ -140,9 +140,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());


Mime
View raw message