CAMEL-9102: Changed CxfEndpoint to allow loggingSizeLimit=-1 for unlimited log size
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/066dc594 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/066dc594 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/066dc594 Branch: refs/heads/master Commit: 066dc59407a92e33853909e72042e418f1a0cb8f Parents: 23456b6 Author: Bruno Marco Visioli <bvisi...@stefanini.com> Authored: Wed Sep 2 17:21:21 2015 -0300 Committer: Claus Ibsen <davscl...@apache.org> Committed: Fri Sep 4 10:18:39 2015 +0200 ---------------------------------------------------------------------- .../main/java/org/apache/camel/component/cxf/CxfEndpoint.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/066dc594/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java ---------------------------------------------------------------------- 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 9f56ccf..b8e080d 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 @@ -319,7 +319,7 @@ public class CxfEndpoint extends DefaultEndpoint implements HeaderFilterStrategy } if (isLoggingFeatureEnabled()) { - if (getLoggingSizeLimit() > 0) { + if (getLoggingSizeLimit() != 0) { sfb.getFeatures().add(new LoggingFeature(getLoggingSizeLimit())); } else { sfb.getFeatures().add(new LoggingFeature()); @@ -510,7 +510,7 @@ public class CxfEndpoint extends DefaultEndpoint implements HeaderFilterStrategy } if (isLoggingFeatureEnabled()) { - if (getLoggingSizeLimit() > 0) { + if (getLoggingSizeLimit() != 0) { factoryBean.getFeatures().add(new LoggingFeature(getLoggingSizeLimit())); } else { factoryBean.getFeatures().add(new LoggingFeature());