How to deactivate camel logging exchanges body in Message History ?

Solution Unverified - Updated -

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 to 0.

  • 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

[2] http://camel.apache.org/message-history.html

Environment

  • Red Hat JBoss Fuse
    • 6.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content