Change default log level in tests to WARNING. Much of the INFO logs are useful in real builds but not in tests.
RELNOTES: None
@@ -20,6 +20,8 @@ import com.google.devtools.build.lib.util.OS;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
+import java.util.logging.Level;
+import java.util.logging.Logger;
/**
* A base class for constructing test suites by searching the classpath for
@@ -27,6 +29,11 @@ import java.util.Set;
*/
public class BazelTestSuiteBuilder {
+ static {
+ // Avoid verbose INFO logging in tests.
+ Logger.getLogger(BazelTestSuiteBuilder.class.getName()).getParent().setLevel(Level.WARNING);
+ }
+
/**
* @return a TestSuiteBuilder configured for Bazel.
*/
