Skip to content

Commit

Permalink
HSEARCH-3151 Fix logging configuration that was being ignored in OSGi…
Browse files Browse the repository at this point in the history
… tests
  • Loading branch information
yrodiere committed Sep 24, 2018
1 parent f94bdde commit 6628db0
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -172,10 +172,15 @@ public Option[] config() throws IOException {
"rmiRegistryHost", "127.0.0.1"
),
// set the log level for the in container logging to INFO
// also just logging to file (out), check data/log/karaf.log w/i the Karaf installation for the test execution log
editConfigurationFilePut(
"etc/org.ops4j.pax.logging.cfg",
"log4j.rootLogger", "INFO, out"
"log4j2.rootLogger.level", "INFO"
),
// also log to the console, so that failsafe can capture the logs in the test output file
editConfigurationFilePut(
"etc/org.ops4j.pax.logging.cfg",
"log4j2.rootLogger.appenderRef.Console.filter.threshold.level",
"TRACE" // Means "whatever the root logger level is"
),
/*
* Use the same local Maven repository as the build job.
Expand Down

0 comments on commit 6628db0

Please sign in to comment.