Liu Cong created SLF4J-480:
------------------------------

             Summary: When using `parallelStream()` function to do something, 
MDC does not work.
                 Key: SLF4J-480
                 URL: https://jira.qos.ch/browse/SLF4J-480
             Project: SLF4J
          Issue Type: Bug
            Reporter: Liu Cong
            Assignee: SLF4J developers list
            Priority: Critical


I need to log a few attributes of the request like the request id and the 
locale, but when using parallelStream, it seems that the ThreadLocal of the MDC 
looses the information.

Ive analyzed the solution of passing the MDC context between the threads when 
creating the parallelStream but it seems dirty and I also have a lot of usages 
of the parallelStream.

Is there any other way of doing this?

Thank you



--
This message was sent by Atlassian JIRA
(v7.3.1#73012)
_______________________________________________
slf4j-dev mailing list
slf4j-dev@qos.ch
http://mailman.qos.ch/mailman/listinfo/slf4j-dev

Reply via email to