ppkarwasz commented on PR #2438:
URL: https://github.com/apache/logging-log4j2/pull/2438#issuecomment-2036848158

   @rgoers,
   
   Can you look at #2442? I think that your `ScopedContext#runWhere` 
implementation could be replaced by calls to the new `ThreadContextMap#restore` 
and `ThreadContextMap#putAll` methods, as shown in this test:
   
   
https://github.com/apache/logging-log4j2/blob/bf9c703cb7cfbce0b2b64bd6c64c4e03c43da1e0/log4j-api-test/src/main/java/org/apache/logging/log4j/test/spi/ThreadContextMapSuite.java#L89-L103
   
   where `threadContext` is an instance of `ThreadContextMap`.
   
   What do you think?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to