mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[^maxim] once there were too many errors in a row, no new exceptions would ever be reported; fixed
(cherry-picked from 06f53d4)
This commit is contained in:
@@ -20,7 +20,6 @@ import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.diagnostic.ErrorLogger;
|
||||
import com.intellij.openapi.diagnostic.IdeaLoggingEvent;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
import org.apache.log4j.AppenderSkeleton;
|
||||
import org.apache.log4j.Priority;
|
||||
import org.apache.log4j.spi.LoggingEvent;
|
||||
@@ -72,6 +71,8 @@ public class DialogAppender extends AppenderSkeleton {
|
||||
// Stop adding requests to the queue or we can get OOME on pending logging requests (IDEA-95327)
|
||||
// Note, we MUST avoid SYNCHRONOUS invokeAndWait to prevent deadlocks
|
||||
// UIUtil.invokeAndWaitIfNeeded(action);
|
||||
|
||||
myPendingAppendCounts.decrementAndGet(); // number of pending logging events should not increase
|
||||
} else {
|
||||
SwingUtilities.invokeLater(action);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user