aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorLéo Geoffroy <99647462+leo-geoffroy-sonarsource@users.noreply.github.com>2022-07-20 09:54:52 +0200
committersonartech <sonartech@sonarsource.com>2022-07-20 20:03:24 +0000
commit466c012d87ca3f37ead691160afb87b212d01645 (patch)
tree89c43814cf258d6886eaba80578733cb9ae51849 /server
parentd65cb67822e7a3af9ecdb9a3a4e3d410952dc6f8 (diff)
downloadsonarqube-466c012d87ca3f37ead691160afb87b212d01645.tar.gz
sonarqube-466c012d87ca3f37ead691160afb87b212d01645.zip
SONAR-16471 - Add logs when sonar is externally stopped
Diffstat (limited to 'server')
-rw-r--r--server/sonar-main/src/main/java/org/sonar/application/SchedulerImpl.java3
1 files changed, 2 insertions, 1 deletions
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();
}
}