diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-11-29 13:48:00 +0100 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-12-01 12:29:40 +0100 |
commit | 1f9bb0b02f646739bfbdfe9dc9e8ed15c86e4e52 (patch) | |
tree | 2338a6b5d034cc174fd18cf36c72970d2004d337 /server/sonar-search | |
parent | 93ea99696bfed149fa1f46888e864b3bde4b4328 (diff) | |
download | sonarqube-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.java | 4 |
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; } |