tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

Issue with log-mdc

Open slotony opened this issue 3 years ago • 1 comments

mdc/log4j/DemoIntegrationTest output is missing the MDC values, e.g., 0 [pool-1-thread-1] INFO Log4JTransferService - Preparing to transfer 556$. - tx.id= tx.owner= This is on Java 17 SDK. Thank you, Anthony

slotony avatar Jul 01 '22 05:07 slotony

Hi @slotony ,

Works fine on my side, on JDK17 as well. Both when running the test from IntelliJ and Maven. 0 [pool-1-thread-1] INFO Log4JTransferService - Preparing to transfer 1392$. - tx.id=1 tx.owner=Susan 0 [pool-1-thread-2] INFO Log4JTransferService - Preparing to transfer 677$. - tx.id=2 tx.owner=Marc 0 [pool-1-thread-3] INFO Log4JTransferService - Preparing to transfer 1872$. - tx.id=3 tx.owner=Samantha 533 [pool-1-thread-2] INFO Log4JTransferService - Has transfer of 677$ completed successfully ? false. - tx.id=2 tx.owner=Marc 535 [pool-1-thread-2] INFO Log4JTransferService - Preparing to transfer 900$. - tx.id=4 tx.owner=Susan

Please double check the setup on your end or provide a step-by-step instruction on how to reproduce it.

kwoyke avatar Jul 14 '22 13:07 kwoyke

Closed due to lack of activity.

ulisseslima avatar Aug 09 '22 14:08 ulisseslima