Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
77e4310b
Commit
77e4310b
authored
6 years ago
by
Roman Shevchenko
Browse files
Options
Download
Email Patches
Plain Diff
Cleanup (formatting)
parent
9e4a4cee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/platform-impl/src/com/intellij/diagnostic/DialogAppender.java
+3
-6
...form-impl/src/com/intellij/diagnostic/DialogAppender.java
with
3 additions
and
6 deletions
+3
-6
platform/platform-impl/src/com/intellij/diagnostic/DialogAppender.java
+
3
-
6
View file @
77e4310b
...
...
@@ -27,11 +27,10 @@ import java.util.concurrent.atomic.AtomicInteger;
*/
public
class
DialogAppender
extends
AppenderSkeleton
{
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_EARLY_LOGGING_EVENTS
=
5
;
private
final
Queue
<
LoggingEvent
>
myEarlyEvents
=
new
ArrayDeque
<>();
private
final
AtomicInteger
myPendingAppendCounts
=
new
AtomicInteger
();
private
volatile
Runnable
myDialogRunnable
;
...
...
@@ -42,10 +41,8 @@ public class DialogAppender extends AppenderSkeleton {
}
if
(
IdeaApplication
.
isLoaded
())
{
LoggingEvent
eventFromQueue
;
while
((
eventFromQueue
=
myEarlyEvents
.
poll
())
!=
null
)
{
queueAppend
(
eventFromQueue
);
}
LoggingEvent
queued
;
while
((
queued
=
myEarlyEvents
.
poll
())
!=
null
)
queueAppend
(
queued
);
queueAppend
(
event
);
}
else
if
(
myEarlyEvents
.
size
()
<
MAX_EARLY_LOGGING_EVENTS
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help