[camel] branch camel-2.24.x updated: CAMEL-14172: when loggingSizeLimit is -1 it should do what the docs say it does (#3332)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[camel] branch camel-2.24.x updated: CAMEL-14172: when loggingSizeLimit is -1 it should do what the docs say it does (#3332)

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

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


The following commit(s) were added to refs/heads/camel-2.24.x by this push:
     new b424ab5  CAMEL-14172: when loggingSizeLimit is -1 it should do what the docs say it does (#3332)
b424ab5 is described below

commit b424ab5baa509e4d683708da4fc0d3fad4286f7e
Author: David Schlenk <[hidden email]>
AuthorDate: Tue Nov 12 21:49:34 2019 -0600

    CAMEL-14172: when loggingSizeLimit is -1 it should do what the docs say it does (#3332)
   
    * make setting loggingSizeLimit to -1 do what the docs say it does
   
    * CAMEL-14172: when loggingSizeLimit is -1 it should do what the docs say it does
---
 .../src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java
index 22b59c1..fdc6519 100644
--- a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java
+++ b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java
@@ -342,7 +342,7 @@ public class CxfEndpoint extends DefaultEndpoint implements AsyncEndpoint, Heade
 
         if (isLoggingFeatureEnabled()) {
             LoggingFeature loggingFeature = new LoggingFeature();
-            if (getLoggingSizeLimit() > 0) {
+            if (getLoggingSizeLimit() >= -1) {
                 loggingFeature.setLimit(getLoggingSizeLimit());
             }
             sfb.getFeatures().add(loggingFeature);
@@ -531,7 +531,7 @@ public class CxfEndpoint extends DefaultEndpoint implements AsyncEndpoint, Heade
 
         if (isLoggingFeatureEnabled()) {
             LoggingFeature loggingFeature = new LoggingFeature();
-            if (getLoggingSizeLimit() > 0) {
+            if (getLoggingSizeLimit() >= -1) {
                 loggingFeature.setLimit(getLoggingSizeLimit());
 
             }