AlexProgrammerDE commented on issue #3234:
URL: 
https://github.com/apache/logging-log4j2/issues/3234#issuecomment-2495652195

   I'd suggest fixing this by making `InternalLoggerRegistry#getLoggers` return 
a precomputed Collection instead of returning a Stream. You could change the 
return type to `Collection<Logger>` and gather the stream inside the lock by 
calling `Stream#toList`.


-- 
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: notifications-unsubscr...@logging.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to