From: Simon Brandhof Date: Sat, 15 Mar 2014 22:48:29 +0000 (+0100) Subject: SONAR-4843 Add log when server is restarted X-Git-Tag: 4.3~417 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0703df654d4166a553f9b5f6d392341a116e2e3f;p=sonarqube.git SONAR-4843 Add log when server is restarted --- diff --git a/sonar-server/src/main/java/org/sonar/server/platform/ws/RestartHandler.java b/sonar-server/src/main/java/org/sonar/server/platform/ws/RestartHandler.java index b0da33a74a7..94312f13377 100644 --- a/sonar-server/src/main/java/org/sonar/server/platform/ws/RestartHandler.java +++ b/sonar-server/src/main/java/org/sonar/server/platform/ws/RestartHandler.java @@ -19,6 +19,7 @@ */ package org.sonar.server.platform.ws; +import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.sonar.api.config.Settings; import org.sonar.api.server.ws.Request; @@ -48,8 +49,10 @@ public class RestartHandler implements RequestHandler { @Override public void handle(Request request, Response response) { if (settings.getBoolean("sonar.dev")) { - LoggerFactory.getLogger(getClass()).info("Restart server"); + Logger logger = LoggerFactory.getLogger(getClass()); + logger.info("Restart server"); platform.restartLevel3Container(); + logger.info("Server restarted"); response.noContent(); } else {