Shekharrajak commented on code in PR #4435:
URL: https://github.com/apache/logging-log4j2/pull/4435#discussion_r4408395746


##########
log4j-jul/src/main/java/org/apache/logging/log4j/jul/ApiLogger.java:
##########
@@ -80,7 +81,15 @@ boolean isFiltered(final LogRecord logRecord) {
 
     @Override
     public boolean isLoggable(final Level level) {
-        return logger.isEnabled(LevelTranslator.toLevel(level));
+        if (Boolean.TRUE.equals(IS_LOGGABLE_IN_PROGRESS.get())) {
+            return false;
+        }
+        IS_LOGGABLE_IN_PROGRESS.set(Boolean.TRUE);

Review Comment:
   is there is more thread then Thread B has its own flag, so its logging 
continues independently.



-- 
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