camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [4/4] camel git commit: CAMEL-11896: Need to use -1 as unlimted as spring boot will use 0 as default and we dont want to set the global option if so. This closes #2040
Date Mon, 16 Oct 2017 07:27:33 GMT
CAMEL-11896: Need to use -1 as unlimted as spring boot will use 0 as default and we dont want
to set the global option if so. This closes #2040


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

Branch: refs/heads/camel-2.20.x
Commit: 43f2d5f02181c02dc015ada59909c46c9cd6036c
Parents: 9d24dde
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Mon Oct 16 09:21:15 2017 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Mon Oct 16 09:27:17 2017 +0200

----------------------------------------------------------------------
 .../org/apache/camel/spring/boot/CamelAutoConfiguration.java     | 4 +++-
 .../apache/camel/spring/boot/CamelConfigurationProperties.java   | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/43f2d5f0/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 b5b3e76..b6331a2 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,7 +140,9 @@ public class CamelAutoConfiguration {
         camelContext.getShutdownStrategy().setShutdownRoutesInReverseOrder(config.isShutdownRoutesInReverseOrder());
         camelContext.getShutdownStrategy().setLogInflightExchangesOnTimeout(config.isShutdownLogInflightExchangesOnTimeout());
 
-        camelContext.getGlobalOptions().put(Exchange.LOG_DEBUG_BODY_MAX_CHARS, "" + config.getLogDebugMaxChars());
+        if (config.getLogDebugMaxChars() != 0) {
+            camelContext.getGlobalOptions().put(Exchange.LOG_DEBUG_BODY_MAX_CHARS, "" + config.getLogDebugMaxChars());
+        }
 
         // stream caching
         camelContext.setStreamCaching(config.isStreamCachingEnabled());

http://git-wip-us.apache.org/repos/asf/camel/blob/43f2d5f0/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
----------------------------------------------------------------------
diff --git a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
index 1739625..9882a13 100644
--- a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
+++ b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
@@ -192,8 +192,8 @@ public class CamelConfigurationProperties {
 
     /**
      * Is used to limit the maximum length of the logging Camel message bodies. If the message
body
-     * is longer than the limit, the log message is clipped. Use a value of 0 or negative
to have unlimited length.
-     * Use for example 1000 to log at at most 1000 chars.
+     * is longer than the limit, the log message is clipped. Use -1 to have unlimited length.
+     * Use for example 1000 to log at most 1000 characters.
      */
     private int logDebugMaxChars;
 


Mime
View raw message