You can configure error handler to turn off message history logging And from 2.17 onwards its not logging the body by default.
On Mon, May 30, 2016 at 9:42 AM, Robert van der Linden <[email protected]> wrote: > Hi, > > we're using Camel (in Scala) for our application, which handles messages that > contain data that should not be exposed to our logging facility. However, > when a org.apache.camel.CamelExchangeException with the error "Cannot write > body" occurs, the body of the messages is dumped in the log, like this: > Failed delivery for (MessageId: ID-#### on ExchangeId: ID-####). On delivery > attempt: 8 caught: org.apache.camel.CamelExchangeException: Cannot write body: > This is not acceptable for our case. > > Is there a way to prevent Camel from logging the message body in this case, > or in general? > > Best, > Robert. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
