fix(javac-services): do not flood logs by unnecessarily logging 'keepComments' override

This commit is contained in:
Akash Yadav
2023-10-26 20:07:43 +05:30
parent dd8dca9a7c
commit e193723529
2 changed files with 2 additions and 3 deletions
@@ -197,7 +197,7 @@ class DefaultActionsRegistry : ActionsRegistry() {
/** Executes the given action item with the given */
fun executeAction(action: ActionItem, data: ActionData) : Job {
val onMainThread = action.requiresUIThread
val context = if (onMainThread) Dispatchers.Main else Dispatchers.Default
val context = if (onMainThread) Dispatchers.Main.immediate else Dispatchers.Default
return actionsCoroutineScope.launch(context) {
val result = withStopWatch("Action '${action.id}'") {
action.execAction(data)
@@ -211,7 +211,7 @@ class DefaultActionsRegistry : ActionsRegistry() {
if (onMainThread) {
post()
} else {
withContext(Dispatchers.Main) {
withContext(Dispatchers.Main.immediate) {
post()
}
}
@@ -100,7 +100,6 @@ public class NBParserFactory extends ParserFactory {
} else if (KEEP_COMMENTS_OVERRIDE_KEEP.equals(this.keepCommentsOverride)) {
keepDocCommentsOverride = true;
}
LOG.debug("'keepComments' overridden to ", this.keepCommentsOverride);
}
Lexer lexer = scannerFactory.newScanner(input, keepDocCommentsOverride);