From 83fcd0858470d11b4e9aae183197a1e4059afeb2 Mon Sep 17 00:00:00 2001 From: Stephane Gamard Date: Mon, 25 Aug 2014 13:38:53 +0200 Subject: [PATCH] SONAR-5483 - Added cluster notification log --- .../src/main/java/org/sonar/application/App.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sonar-application/src/main/java/org/sonar/application/App.java b/sonar-application/src/main/java/org/sonar/application/App.java index 29fa2934b9c..59f236fdfec 100644 --- a/sonar-application/src/main/java/org/sonar/application/App.java +++ b/sonar-application/src/main/java/org/sonar/application/App.java @@ -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"); -- 2.39.5