aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-process-monitor
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-10-14 21:47:34 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-10-14 21:47:34 +0200
commitc809056c115524c9303c5b9c8e77964d976d4226 (patch)
tree22e770f6cf31f2d03a830eab04c6508a4c27f17a /server/sonar-process-monitor
parent3f74239a8255ad897c43b0b2fd260003b083eac9 (diff)
downloadsonarqube-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.java5
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);