]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5483 - Added cluster notification log
authorStephane Gamard <stephane.gamard@searchbox.com>
Mon, 25 Aug 2014 11:38:53 +0000 (13:38 +0200)
committerStephane Gamard <stephane.gamard@searchbox.com>
Mon, 25 Aug 2014 11:38:53 +0000 (13:38 +0200)
sonar-application/src/main/java/org/sonar/application/App.java

index 29fa2934b9ce968291678416e8c86761e6422d55..59f236fdfeccb0872b645074545d791b4555e9da 100644 (file)
@@ -31,6 +31,7 @@ import org.sonar.process.ProcessMXBean;
 import org.sonar.process.ProcessUtils;
 import org.sonar.process.ProcessWrapper;
 import org.sonar.process.Props;
+import org.sonar.search.SearchServer;
 
 import java.io.File;
 import java.io.IOException;
@@ -166,6 +167,9 @@ public class App implements ProcessMXBean {
 
     try {
       // start and wait for shutdown command
+      if (props.contains(SearchServer.ES_CLUSTER_INET)) {
+        logger.info("SonarQube slave configured to join SonarQube master : {}", props.of(SearchServer.ES_CLUSTER_INET));
+      }
       app.start(props);
     } catch (InterruptedException e) {
       LoggerFactory.getLogger(App.class).info("interrupted");