Use a silent error manager in RefactoringDriver instead of a (spammy) logging one.
@@ -22,6 +22,7 @@ import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Function;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Lists;
+import com.google.javascript.jscomp.BlackHoleErrorManager;
import com.google.javascript.jscomp.CheckLevel;
import com.google.javascript.jscomp.Compiler;
import com.google.javascript.jscomp.CompilerOptions;
@@ -74,7 +75,7 @@ public final class RefactoringDriver {
private static Compiler createCompiler(
List<SourceFile> inputs, List<SourceFile> externs, CompilerOptions compilerOptions) {
- Compiler compiler = new Compiler();
+ Compiler compiler = new Compiler(new BlackHoleErrorManager());
compiler.disableThreads();
compiler.compile(externs, inputs, compilerOptions);
return compiler;
