[ 
https://issues.apache.org/jira/browse/CAMEL-17676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-17676.
---------------------------------
    Resolution: Information Provided

We have done some fixes for Camel 4.4. 

Try with that release onwards.

> MDC not working anymore while logging failed delivery
> -----------------------------------------------------
>
>                 Key: CAMEL-17676
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17676
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 3.12.0, 3.14.2, 3.15.0
>            Reporter: Erwin Oldenkamp
>            Priority: Minor
>
> In version 3.12.0 the {{RedeliveryErrorHandler}} doesn't log the BreadcrumbId 
> and RouteId anymore. 
> In version 3.12.0 I would see:
> {code:java}
> 2022-02-17 16:47:31,701 INFO  o.a.c.p.e.DeadLetterChannel - [BC ] - [RI ] - 
> Failed delivery for (MessageId: 
> ID:activemq-6bbb4dbb68-cr62z-39269-1645104552893-5:2:1:1:8 on ExchangeId: 
> 92F0FAC801928B8-0000000000000000). On delivery attempt: 0 caught: 
> java.lang.Exception: Some Bug {code}
> Where as on version 3.11.4 the following is being displayed 
> {code:java}
> 2022-02-17 17:20:24,820 INFO  o.a.c.p.e.DeadLetterChannel - [BC 
> 331601E40883DAE-0000000000000000] - [RI CamelMDCTest1] - Failed delivery for 
> (MessageId: ID:activemq-6bbb4dbb68-cr62z-39269-1645104552893-5:3:1:1:1 on 
> ExchangeId: 331601E40883DAE-0000000000000000). On delivery attempt: 0 caught: 
> java.lang.Exception: Some Bug {code}
> The following is my logging formatting: 
> {code:java}
> <pattern>%d %-5level %logger{36} - [BC %X{camel.breadcrumbId}] - [RI 
> %X{camel.routeId}] - %msg%n</pattern> {code}
> I think this has to do with CAMEL-17009 for cleaning the MDC out more often 
> now.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to