camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MC <2320...@gmail.com>
Subject Camel Execution Exception
Date Wed, 08 Jul 2015 21:05:21 GMT
Hi,

   I am using Simple expression (camel version 2.15.2) which in somecases
throws CamelExecutionException. I am handling the exceptions, but stacktrace
(logging it to logs/console) contains payload information where it is
failing on. I understand its good thing for development. But in production 
payload contains sensitive information which I don't want to log along with
stacktrace. I looked at the camel code (RuntimeExchangeException constructs
the exception message with exchange if it is not null) and there is no
option to skip the payload from exception message. Only way to avoid it is
to print root cause rather than the wrapper exception. This situation could
be true with any core components which throws CamelExectionException if i
understand camel correctly.  

Is there a way to control exception messages?

Thanks in advance 
MC 



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Execution-Exception-tp5769004.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message