aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-search
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-11-29 13:48:00 +0100
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-12-01 12:29:40 +0100
commit1f9bb0b02f646739bfbdfe9dc9e8ed15c86e4e52 (patch)
tree2338a6b5d034cc174fd18cf36c72970d2004d337 /server/sonar-search
parent93ea99696bfed149fa1f46888e864b3bde4b4328 (diff)
downloadsonarqube-1f9bb0b02f646739bfbdfe9dc9e8ed15c86e4e52.tar.gz
sonarqube-1f9bb0b02f646739bfbdfe9dc9e8ed15c86e4e52.zip
SONAR-8335 make changing root level change level of all loggers
Diffstat (limited to 'server/sonar-search')
-rw-r--r--server/sonar-search/src/main/java/org/sonar/search/SearchLogging.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-search/src/main/java/org/sonar/search/SearchLogging.java b/server/sonar-search/src/main/java/org/sonar/search/SearchLogging.java
index 38e26b7621a..d4ef440abd4 100644
--- a/server/sonar-search/src/main/java/org/sonar/search/SearchLogging.java
+++ b/server/sonar-search/src/main/java/org/sonar/search/SearchLogging.java
@@ -20,6 +20,7 @@
package org.sonar.search;
import ch.qos.logback.classic.LoggerContext;
+import org.sonar.process.logging.LogLevelConfig;
import org.sonar.process.logging.LogbackHelper;
import org.sonar.process.ProcessId;
import org.sonar.process.Props;
@@ -40,7 +41,8 @@ public class SearchLogging {
String logPattern = helper.buildLogPattern(config);
helper.configureGlobalFileLog(props, config, logPattern);
helper.configureForSubprocessGobbler(props, logPattern);
- helper.configureRootLogLevel(props, ProcessId.ELASTICSEARCH);
+
+ helper.apply(LogLevelConfig.newBuilder().rootLevelFor(ProcessId.ELASTICSEARCH).build(), props);
return ctx;
}