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/9d24dde8 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/9d24dde8 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/9d24dde8 Branch: refs/heads/camel-2.20.x Commit: 9d24dde87abc4ee4c22c35c481a423f10943be6d Parents: 0fe4999 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:27:10 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/9d24dde8/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());