From 466c012d87ca3f37ead691160afb87b212d01645 Mon Sep 17 00:00:00 2001 From: =?utf8?q?L=C3=A9o=20Geoffroy?= <99647462+leo-geoffroy-sonarsource@users.noreply.github.com> Date: Wed, 20 Jul 2022 09:54:52 +0200 Subject: [PATCH] SONAR-16471 - Add logs when sonar is externally stopped --- .../src/main/java/org/sonar/application/SchedulerImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/sonar-main/src/main/java/org/sonar/application/SchedulerImpl.java b/server/sonar-main/src/main/java/org/sonar/application/SchedulerImpl.java index 391a8bc7f63..91293573d82 100644 --- a/server/sonar-main/src/main/java/org/sonar/application/SchedulerImpl.java +++ b/server/sonar-main/src/main/java/org/sonar/application/SchedulerImpl.java @@ -226,6 +226,7 @@ public class SchedulerImpl implements Scheduler, ManagedProcessEventListener, Pr private void stopAll() throws InterruptedException { // order is important for non-cluster mode + LOG.info("Sonarqube has been requested to stop"); stopProcess(ProcessId.COMPUTE_ENGINE); stopProcess(ProcessId.WEB_SERVER); stopProcess(ProcessId.ELASTICSEARCH); @@ -240,7 +241,7 @@ public class SchedulerImpl implements Scheduler, ManagedProcessEventListener, Pr private void stopProcess(ProcessId processId) throws InterruptedException { ManagedProcessHandler process = processesById.get(processId); if (process != null) { - LOG.debug("Stopping [{}]...", process.getProcessId().getHumanReadableName()); + LOG.info("Stopping [{}] process...", process.getProcessId().getHumanReadableName()); process.stop(); } } -- 2.39.5