diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-10-14 21:47:34 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-10-14 21:47:34 +0200 |
commit | c809056c115524c9303c5b9c8e77964d976d4226 (patch) | |
tree | 22e770f6cf31f2d03a830eab04c6508a4c27f17a /server/sonar-process-monitor | |
parent | 3f74239a8255ad897c43b0b2fd260003b083eac9 (diff) | |
download | sonarqube-c809056c115524c9303c5b9c8e77964d976d4226.tar.gz sonarqube-c809056c115524c9303c5b9c8e77964d976d4226.zip |
Fix quality flaws
Diffstat (limited to 'server/sonar-process-monitor')
-rw-r--r-- | server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/ProcessRef.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/ProcessRef.java b/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/ProcessRef.java index dc348a54516..a69e61c4487 100644 --- a/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/ProcessRef.java +++ b/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/ProcessRef.java @@ -19,6 +19,7 @@ */ package org.sonar.process.monitor; +import org.slf4j.LoggerFactory; import org.sonar.process.MessageException; import org.sonar.process.ProcessCommands; import org.sonar.process.ProcessUtils; @@ -90,9 +91,9 @@ class ProcessRef { // signal is sent, waiting for shutdown hooks to be executed (or not... it depends on OS) process.waitFor(); - } catch (InterruptedException ignored) { + } catch (InterruptedException e) { // can't wait for the termination of process. Let's assume it's down. - // TODO log warning + LoggerFactory.getLogger(getClass()).warn(String.format("Interrupted while stopping process %s", key), e); } } ProcessUtils.closeStreams(process); |