*/
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;
@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 {