]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8335 rename LogDomain#ES_CLIENT to LogDomain#ES 1418/head
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Thu, 1 Dec 2016 09:02:23 +0000 (10:02 +0100)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Thu, 1 Dec 2016 11:29:40 +0000 (12:29 +0100)
server/sonar-process/src/main/java/org/sonar/process/logging/LogDomain.java
server/sonar-process/src/test/java/org/sonar/process/logging/LogbackHelperTest.java
server/sonar-server/src/main/java/org/sonar/ce/log/CeProcessLogging.java
server/sonar-server/src/main/java/org/sonar/server/app/WebServerProcessLogging.java

index a4a19a64ca71d3aaad38e8dec6ee009b6800523e..5a4198363b8a2ac7dc0a98934d9c9fcfc77ba80c 100644 (file)
@@ -21,7 +21,7 @@ package org.sonar.process.logging;
 
 public enum LogDomain {
   SQL("sql"),
-  ES_CLIENT("es"),
+  ES("es"),
   JMX("jmx");
 
   private final String key;
index 023d8494875ca55d4b708fde753c2ce4767b5fb1..66d9912de1e01ee64289dc279b62c01fef813488 100644 (file)
@@ -240,7 +240,7 @@ public class LogbackHelperTest {
 
   @Test
   public void apply_sets_domain_property_over_process_and_global_property_if_all_set() {
-    LogLevelConfig config = LogLevelConfig.newBuilder().levelByDomain("foo", ProcessId.WEB_SERVER, LogDomain.ES_CLIENT).build();
+    LogLevelConfig config = LogLevelConfig.newBuilder().levelByDomain("foo", ProcessId.WEB_SERVER, LogDomain.ES).build();
     props.set("sonar.log.level", "DEBUG");
     props.set("sonar.log.level.web", "DEBUG");
     props.set("sonar.log.level.web.es", "TRACE");
@@ -252,7 +252,7 @@ public class LogbackHelperTest {
 
   @Test
   public void apply_sets_domain_property_over_process_property_if_both_set() {
-    LogLevelConfig config = LogLevelConfig.newBuilder().levelByDomain("foo", ProcessId.WEB_SERVER, LogDomain.ES_CLIENT).build();
+    LogLevelConfig config = LogLevelConfig.newBuilder().levelByDomain("foo", ProcessId.WEB_SERVER, LogDomain.ES).build();
     props.set("sonar.log.level.web", "DEBUG");
     props.set("sonar.log.level.web.es", "TRACE");
 
@@ -263,7 +263,7 @@ public class LogbackHelperTest {
 
   @Test
   public void apply_sets_domain_property_over_global_property_if_both_set() {
-    LogLevelConfig config = LogLevelConfig.newBuilder().levelByDomain("foo", ProcessId.WEB_SERVER, LogDomain.ES_CLIENT).build();
+    LogLevelConfig config = LogLevelConfig.newBuilder().levelByDomain("foo", ProcessId.WEB_SERVER, LogDomain.ES).build();
     props.set("sonar.log.level", "DEBUG");
     props.set("sonar.log.level.web.es", "TRACE");
 
@@ -299,7 +299,7 @@ public class LogbackHelperTest {
     LogLevelConfig config = LogLevelConfig.newBuilder()
         .rootLevelFor(ProcessId.WEB_SERVER)
         .levelByDomain("foo", ProcessId.WEB_SERVER, LogDomain.JMX)
-        .levelByDomain("bar", ProcessId.COMPUTE_ENGINE, LogDomain.ES_CLIENT)
+        .levelByDomain("bar", ProcessId.COMPUTE_ENGINE, LogDomain.ES)
         .immutableLevel("doh", Level.ERROR)
         .immutableLevel("pif", Level.TRACE)
         .build();
index 52a385de58f20dd54fee84f67776d72b0e29dacc..5729b41fa5b83075d54abb716f665bce5403d4bd 100644 (file)
@@ -38,7 +38,7 @@ public class CeProcessLogging extends ServerProcessLogging {
   @Override
   protected void extendLogLevelConfiguration(LogLevelConfig.Builder logLevelConfigBuilder) {
     logLevelConfigBuilder.levelByDomain("sql", ProcessId.COMPUTE_ENGINE, LogDomain.SQL);
-    logLevelConfigBuilder.levelByDomain("es", ProcessId.COMPUTE_ENGINE, LogDomain.ES_CLIENT);
+    logLevelConfigBuilder.levelByDomain("es", ProcessId.COMPUTE_ENGINE, LogDomain.ES);
     JMX_RMI_LOGGER_NAMES.forEach(loggerName -> logLevelConfigBuilder.levelByDomain(loggerName, ProcessId.COMPUTE_ENGINE, LogDomain.JMX));
   }
 
index da2a4f6ad4808f12a195cd27aadb803e11c41c05..149d94be91a0e5e9a0015c6821d4999d106b9272 100644 (file)
@@ -39,7 +39,7 @@ public class WebServerProcessLogging extends ServerProcessLogging {
   @Override
   protected void extendLogLevelConfiguration(LogLevelConfig.Builder logLevelConfigBuilder) {
     logLevelConfigBuilder.levelByDomain("sql", ProcessId.WEB_SERVER, LogDomain.SQL);
-    logLevelConfigBuilder.levelByDomain("es", ProcessId.WEB_SERVER, LogDomain.ES_CLIENT);
+    logLevelConfigBuilder.levelByDomain("es", ProcessId.WEB_SERVER, LogDomain.ES);
     JMX_RMI_LOGGER_NAMES.forEach(loggerName -> logLevelConfigBuilder.levelByDomain(loggerName, ProcessId.WEB_SERVER, LogDomain.JMX));
   }