Commit 77e4310b authored by Roman Shevchenko's avatar Roman Shevchenko
Browse files

Cleanup (formatting)

parent 9e4a4cee
Branches unavailable Tags unavailable
No related merge requests found
Showing with 3 additions and 6 deletions
+3 -6
...@@ -27,11 +27,10 @@ import java.util.concurrent.atomic.AtomicInteger; ...@@ -27,11 +27,10 @@ import java.util.concurrent.atomic.AtomicInteger;
*/ */
public class DialogAppender extends AppenderSkeleton { public class DialogAppender extends AppenderSkeleton {
private static final ErrorLogger[] LOGGERS = {new DefaultIdeaErrorLogger()}; private static final ErrorLogger[] LOGGERS = {new DefaultIdeaErrorLogger()};
private static final int MAX_EARLY_LOGGING_EVENTS = 5;
private static final int MAX_ASYNC_LOGGING_EVENTS = 5; private static final int MAX_ASYNC_LOGGING_EVENTS = 5;
private static final int MAX_EARLY_LOGGING_EVENTS = 5;
private final Queue<LoggingEvent> myEarlyEvents = new ArrayDeque<>(); private final Queue<LoggingEvent> myEarlyEvents = new ArrayDeque<>();
private final AtomicInteger myPendingAppendCounts = new AtomicInteger(); private final AtomicInteger myPendingAppendCounts = new AtomicInteger();
private volatile Runnable myDialogRunnable; private volatile Runnable myDialogRunnable;
...@@ -42,10 +41,8 @@ public class DialogAppender extends AppenderSkeleton { ...@@ -42,10 +41,8 @@ public class DialogAppender extends AppenderSkeleton {
} }
if (IdeaApplication.isLoaded()) { if (IdeaApplication.isLoaded()) {
LoggingEvent eventFromQueue; LoggingEvent queued;
while ((eventFromQueue = myEarlyEvents.poll()) != null) { while ((queued = myEarlyEvents.poll()) != null) queueAppend(queued);
queueAppend(eventFromQueue);
}
queueAppend(event); queueAppend(event);
} }
else if (myEarlyEvents.size() < MAX_EARLY_LOGGING_EVENTS) { else if (myEarlyEvents.size() < MAX_EARLY_LOGGING_EVENTS) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment