Use an onException and the you can log the file name, such as
onException(Exception.class).log("Darn error processing file
${file:name} due ${exception.message}");
On Thu, Feb 5, 2015 at 12:38 PM, geppo <[email protected]> wrote:
> Great! That works.
> Thank you very much.
>
> Any idea how to log the filename on error?
> By default it just logs the ExchangeId, which is not very useful.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Idempotent-and-errorHandler-tp5762408p5762412.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/