camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject git commit: CAMEL-6480: Allow to not log message body if CamelLogDebugBodyMaxChars is set to negative value.
Date Sat, 29 Jun 2013 09:56:25 GMT
Updated Branches:
  refs/heads/master 29d8db8fa -> 05967ac7f


CAMEL-6480: Allow to not log message body if CamelLogDebugBodyMaxChars is set to negative
value.


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

Branch: refs/heads/master
Commit: 05967ac7fe3d60b20c31f3796133f6854f10686c
Parents: 29d8db8
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sat Jun 29 13:54:41 2013 +0400
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sat Jun 29 13:54:41 2013 +0400

----------------------------------------------------------------------
 .../java/org/apache/camel/processor/DefaultExchangeFormatter.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/05967ac7/camel-core/src/main/java/org/apache/camel/processor/DefaultExchangeFormatter.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/processor/DefaultExchangeFormatter.java
b/camel-core/src/main/java/org/apache/camel/processor/DefaultExchangeFormatter.java
index 8f474a3..0405fde 100644
--- a/camel-core/src/main/java/org/apache/camel/processor/DefaultExchangeFormatter.java
+++ b/camel-core/src/main/java/org/apache/camel/processor/DefaultExchangeFormatter.java
@@ -345,7 +345,7 @@ public class DefaultExchangeFormatter implements ExchangeFormatter {
             }
         }
 
-        return MessageHelper.extractBodyForLogging(message, "", isShowStreams(), isShowFiles(),
-1);
+        return MessageHelper.extractBodyForLogging(message, "", isShowStreams(), isShowFiles(),
getMaxChars());
     }
 
     protected String getBodyTypeAsString(Message message) {


Mime
View raw message