camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ankit Thakkar (JIRA)" <>
Subject [jira] [Commented] (CAMEL-8017) Custom ExchangeFormatter doesn't work for LogComponent
Date Wed, 12 Nov 2014 16:11:36 GMT


Ankit Thakkar commented on CAMEL-8017:

Hi Claus Ibsen,
Can you please share your suggestions how to resolve this issue, this is show stopper for
us to implement custom logging? We have noticed this issue in production that all sensitive
information getting logged in logger, so need to fix. 


> Custom ExchangeFormatter doesn't work for LogComponent
> ------------------------------------------------------
>                 Key: CAMEL-8017
>                 URL:
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.12.2
>         Environment: Production
>            Reporter: Ankit Thakkar
> Hello,
> We are using log: component to log request, response and exception details. We have been
trying to customize DefaultExchangeFormatter to filter certain header fields getting logged
in logger. 
> We have implemented custom ExchangeFormatter and registered in spring context with bean
name 'logFormatter'. However, getting below exception during application service restart.

> Exception - 
> There are 4 parameters that couldn't be set on the endpoint. Check the uri if the parameters
are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{showAll=false,
showBody=false, showCaughtException=true, showStackTrace=true}]
> The issue seems to be at this check in DefaultComponent,
>             if (!endpoint.isLenientProperties()) {
>                 validateParameters(uri, parameters, null);
>             }
> Please let me know if this issue can be fixed. 
> Thanks

This message was sent by Atlassian JIRA

View raw message