]> source.dussan.org Git - sonarqube.git/commitdiff
Replace display of server id by permanent server id 568/head
authorJulien HENRY <julien.henry@sonarsource.com>
Mon, 5 Oct 2015 10:43:22 +0000 (12:43 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Mon, 5 Oct 2015 13:05:20 +0000 (15:05 +0200)
sonar-batch/src/main/java/org/sonar/batch/bootstrap/GlobalSettings.java

index 4469efd3767c36fbb305251d529929e9f936343a..eaab0380b03cd1867326d7623142821ae85e132b 100644 (file)
@@ -20,9 +20,7 @@
 package org.sonar.batch.bootstrap;
 
 import com.google.common.collect.ImmutableMap;
-
 import java.util.Map;
-
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.sonar.api.CoreProperties;
@@ -43,8 +41,7 @@ public class GlobalSettings extends Settings {
   private static final Map<String, String> DROPPED_PROPERTIES = ImmutableMap.of(
     "sonar.jdbc.url", JDBC_SPECIFIC_MESSAGE,
     "sonar.jdbc.username", JDBC_SPECIFIC_MESSAGE,
-    "sonar.jdbc.password", JDBC_SPECIFIC_MESSAGE
-    );
+    "sonar.jdbc.password", JDBC_SPECIFIC_MESSAGE);
 
   private final GlobalProperties bootstrapProps;
   private final GlobalRepositories globalReferentials;
@@ -66,7 +63,9 @@ public class GlobalSettings extends Settings {
     addProperties(globalReferentials.globalSettings());
     addProperties(bootstrapProps.properties());
 
-    LOG.info("Server id: " + getString(CoreProperties.SERVER_ID));
+    if (hasKey(CoreProperties.PERMANENT_SERVER_ID)) {
+      LOG.info("Server id: " + getString(CoreProperties.PERMANENT_SERVER_ID));
+    }
   }
 
   @Override