Hi

You can configure the error handler logging level, incl / excl stracktraces
etc.
Or you can do a custom onException and then handle the exception, and then
do your own logging etc.



On Tue, Mar 17, 2020 at 10:44 AM Paw B Sørensen
<[email protected]> wrote:

> Hi,
>
>
>
> I am using the camel fhir component to retrieve observations for a
> patient. As part of the request I set the URL including query params
> identifying the patient:
>
>
>
> .setHeader(FhirConstants.PROPERTY_PREFIX + "url",
> constant("Observation?subject:Patient=0111191234"))
>
> .toD(String.format("fhir:%s/%s",
>
>
> FhirApiCollection.getCollection().getApiName(FhirSearchApiMethod.class).getName(),
>
>           FhirSearchApiMethod.SEARCHBYURL.getName()) +
>
>           "?encoding=XML" +
>
>           "&log=false" +
>
>           "&validationMode=NEVER")
>
>
>
> If the request fails for example HTTP 404 Not Found because the patient
> was unknown then the resulting RuntimeCamelException logged by the
> RedeliveryErrorHandler includes the URL.
>
> This is a problem because of GDPR we cannot allow a patient identifier in
> the log files.
>
> Is there any way to prevent the logging or to remove the URL before the
> logging
>
>
>
>
>
> Paw B Sørensen
>
> [email protected]
>
>
>
> Med venlig hilsen / Kind regards
>
> [image: Systematic Logo] <http://www.systematic.com/>
> *Paw B Sørensen*
> Systems Engineer
>
> Søren Frichs Vej 39, 8000 Aarhus C
> Denmark
>
> Mobile: +45 2544 9834
> [email protected]
> www.systematic.com
>


-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to