aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/sonar-process-monitor/src/main/java/org/sonar/application/SchedulerImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-process-monitor/src/main/java/org/sonar/application/SchedulerImpl.java b/server/sonar-process-monitor/src/main/java/org/sonar/application/SchedulerImpl.java
index 91f914b7f38..b13f4daaca9 100644
--- a/server/sonar-process-monitor/src/main/java/org/sonar/application/SchedulerImpl.java
+++ b/server/sonar-process-monitor/src/main/java/org/sonar/application/SchedulerImpl.java
@@ -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");
}