You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2019/11/13 04:19:07 UTC
[camel] branch camel-2.x updated: CAMEL-14172: when
loggingSizeLimit is -1 it should do what the docs say it does (#3332)
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-2.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-2.x by this push:
new b38139f CAMEL-14172: when loggingSizeLimit is -1 it should do what the docs say it does (#3332)
b38139f is described below
commit b38139fe2b96719ea9502592fe93a7c3663572a6
Author: David Schlenk <ds...@convergeone.com>
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());
}