mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
optimization: improve logging speed in tests
GitOrigin-RevId: 320022431e40624415a8bef37b89ca1034d27b3f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4d6ab68e09
commit
25a4044131
+6
-8
@@ -596,14 +596,12 @@ public final class PassExecutorService implements Disposable {
|
||||
if (LOG.isDebugEnabled()) {
|
||||
Document document = pass instanceof TextEditorHighlightingPass text ? text.getDocument() : null;
|
||||
CharSequence docText = document == null ? "" : ": '" + StringUtil.first(document.getCharsSequence(), 10, true)+ "'";
|
||||
synchronized (PassExecutorService.class) {
|
||||
String message = StringUtil.repeatSymbol(' ', IdeaForkJoinWorkerThreadFactory.getThreadNum() * 4)
|
||||
+ " " + (pass == null ? "" : pass + " ")
|
||||
+ StringUtil.join(info, Functions.TO_STRING(), " ")
|
||||
+ "; progress=" + progressIndicator
|
||||
+ (docText.isEmpty() ? "" : " " + docText);
|
||||
LOG.debug(message);
|
||||
}
|
||||
String message = StringUtil.repeatSymbol(' ', IdeaForkJoinWorkerThreadFactory.getThreadNum() * 4)
|
||||
+ " " + (pass == null ? "" : pass + " ")
|
||||
+ StringUtil.join(info, Functions.TO_STRING(), " ")
|
||||
+ "; progress=" + progressIndicator
|
||||
+ (docText.isEmpty() ? "" : " " + docText);
|
||||
LOG.debug(message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user