]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-9002 Fix incorrect message
authorEric Hartmann <hartmann.eric@gmail.com>
Fri, 14 Apr 2017 15:23:36 +0000 (17:23 +0200)
committerEric Hartmann <hartmann.eric@gmail.Com>
Thu, 27 Apr 2017 07:23:18 +0000 (09:23 +0200)
server/sonar-process-monitor/src/main/java/org/sonar/application/SchedulerImpl.java

index 91f914b7f3801a939093b208e308b7ec07ad4e2b..b13f4daaca9dffe76e3ba1bbb5f3e5fc0d16230d 100644 (file)
@@ -121,7 +121,7 @@ public class SchedulerImpl implements Scheduler, ProcessEventListener, ProcessLi
     } else {
       Optional<String> leader = appState.getLeaderHostName();
       if (leader.isPresent()) {
-        LOG.info("Waiting for initialization from " + appState.getLeaderHostName());
+        LOG.info("Waiting for initialization from " + leader.get());
       } else {
         LOG.error("Initialization failed. All nodes must be restarted");
       }