diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-01-11 09:33:34 +0100 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-01-13 13:42:43 +0100 |
commit | e24f76490ae02b8138ad76bce61035132a3ef9a9 (patch) | |
tree | e34d6f4e1f7b0c16c21e055e321ea3a8152059d5 /server/sonar-process-monitor | |
parent | 454932613ec7810bce21d53abee0bcc98fa72d04 (diff) | |
download | sonarqube-e24f76490ae02b8138ad76bce61035132a3ef9a9.tar.gz sonarqube-e24f76490ae02b8138ad76bce61035132a3ef9a9.zip |
SONAR-7168 replace System.err with LOG.trace in Monitor and Lifecycle
Diffstat (limited to 'server/sonar-process-monitor')
-rw-r--r-- | server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/Monitor.java | 12 |
1 files changed, 8 insertions, 4 deletions
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 7dcf8ede0d0..e2e50bb0724 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 @@ -158,9 +158,9 @@ public class Monitor { boolean waitForOneRestart() { boolean restartRequested = awaitChildProcessesTermination(); - trace("finished waiting, restartRequested=" + restartRequested); + trace("finished waiting, restartRequested={}", restartRequested); if (restartRequested) { - trace("awaitTermination(restartor)=" + restartor); + trace("awaitTermination restartor={}", restartor); awaitTermination(restartor); } return restartRequested; @@ -203,7 +203,7 @@ public class Monitor { private void cleanAfterTermination() { trace("go to STOPPED..."); if (lifecycle.tryToMoveTo(State.STOPPED)) { - trace("await termination of restartWatcher..."); + trace("await termination of restartWatcher and hardStopWatcher..."); // wait for restartWatcher and hardStopWatcher to cleanly stop awaitTermination(restartWatcher, hardStopWatcher); trace("restartWatcher done"); @@ -406,7 +406,11 @@ public class Monitor { } private static void trace(String s) { - System.err.println("APP: " + s); + LOG.trace(s); + } + + private static void trace(String s, Object args) { + LOG.trace(s, args); } public static int getNextProcessId() { |