How to deactivate camel logging exchanges body in Message History ?
Issue
-
In Camel, there is an option
"CamelLogDebugBodyMaxChars"to customize the limit when Camel clips the exchanges body in the log (see [1]).
In our product, we do not want to log any exchange's payload for confidentiality reason. This option is working fine but as from
Apache Camel 2.12, there is a new feature called"Message History"(see [2]) which logs the message body, no matter if the option"CamelLogDebugBodyMaxChars"is set to0. -
The option
"CamelLogDebugBodyMaxChars"seems then a little bit useless if the Message History is logged anyway. It would be nice to benefit from it and that it takes into account the number of characters that should be logged for the exchanges body. -
Is it possible to configure that?
[1] http://camel.apache.org/how-do-i-set-the-max-chars-when-debug-logging-messages-in-camel.html
Environment
- Red Hat JBoss Fuse
- 6.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
