Grokbase Groups Camel users May 2016
FAQ
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
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

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 6 | next ›
Discussion Overview
groupusers @
categoriescamel
postedMay 30, '16 at 7:46a
activeJun 11, '16 at 5:48a
posts6
users3
websitecamel.apache.org

People

Translate

site design / logo © 2017 Grokbase