Reduce pax-exam log level.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1531092 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/dependencymanager/test2/src/test/java/org/apache/felix/dependencymanager/test2/integration/common/TestBase.java b/dependencymanager/test2/src/test/java/org/apache/felix/dependencymanager/test2/integration/common/TestBase.java
index 5c01334..c19f5e2 100644
--- a/dependencymanager/test2/src/test/java/org/apache/felix/dependencymanager/test2/integration/common/TestBase.java
+++ b/dependencymanager/test2/src/test/java/org/apache/felix/dependencymanager/test2/integration/common/TestBase.java
@@ -52,6 +52,10 @@
import org.osgi.framework.ServiceReference;
import org.osgi.framework.ServiceRegistration;
import org.osgi.service.log.LogService;
+import org.slf4j.LoggerFactory;
+import ch.qos.logback.classic.Level;
+import ch.qos.logback.classic.Level;
+import ch.qos.logback.classic.Logger;
public abstract class TestBase implements LogService, FrameworkListener {
public static final String OSGI_SPEC_VERSION = "4.2.0";
@@ -86,6 +90,10 @@
throw new IllegalArgumentException("Cannot read from bundle file " + bundleFileName
+ " specified in the " + BUNDLE_JAR_SYS_PROP + " system property");
}
+
+ // Reduce pax exam log level.
+ Logger root = (Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);
+ root.setLevel(Level.WARN);
final Option[] base = options(
workingDirectory("target/paxexam/"),