]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6179 Add serverID to the logs of the analysis
authorJulien HENRY <julien.henry@sonarsource.com>
Tue, 17 Feb 2015 14:18:31 +0000 (15:18 +0100)
committerJulien HENRY <julien.henry@sonarsource.com>
Tue, 17 Feb 2015 14:18:31 +0000 (15:18 +0100)
sonar-batch/src/main/java/org/sonar/batch/bootstrap/GlobalSettings.java

index 58e6e6e747a215f16855bfb467a309999c8606af..daa3c1d0eea3268589862dcee0fe1ae02ce0236a 100644 (file)
@@ -19,6 +19,8 @@
  */
 package org.sonar.batch.bootstrap;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 import org.sonar.api.CoreProperties;
 import org.sonar.api.config.PropertyDefinitions;
 import org.sonar.api.config.Settings;
@@ -27,6 +29,8 @@ import org.sonar.batch.protocol.input.GlobalRepositories;
 
 public class GlobalSettings extends Settings {
 
+  private static final Logger LOG = LoggerFactory.getLogger(GlobalSettings.class);
+
   private final BootstrapProperties bootstrapProps;
   private final GlobalRepositories globalReferentials;
   private final DefaultAnalysisMode mode;
@@ -45,6 +49,7 @@ public class GlobalSettings extends Settings {
   private void init() {
     addProperties(globalReferentials.globalSettings());
     addProperties(bootstrapProps.properties());
+    LOG.info("Server id: " + getString(CoreProperties.SERVER_ID));
   }
 
   @Override