From: Sébastien Lesaint Date: Tue, 15 Nov 2016 16:26:00 +0000 (+0100) Subject: SONAR-8333 add info log when a subprocess fails to start X-Git-Tag: 6.2-RC1~65 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e332f961691387bfd755a938d8b4606f8c3c9732;p=sonarqube.git SONAR-8333 add info log when a subprocess fails to start --- diff --git a/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/Monitor.java b/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/Monitor.java index 182155ff9fb..7f1d0b5853d 100644 --- a/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/Monitor.java +++ b/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/Monitor.java @@ -141,10 +141,14 @@ public class Monitor { File tempDir = fileSystem.getTempDir(); this.launcher = new JavaProcessLauncher(TIMEOUTS, tempDir); for (JavaCommand command : javaCommands) { + ProcessRef processRef = null; try { - ProcessRef processRef = launcher.launch(command); + processRef = launcher.launch(command); monitor(processRef); } catch (InterruptedException | RuntimeException e) { + if (processRef != null) { + LOG.info("{} failed to start", processRef); + } // fail to start or to monitor stop(); throw e;