diff options
author | Stephane Gamard <stephane.gamard@searchbox.com> | 2014-07-28 10:46:20 +0200 |
---|---|---|
committer | Stephane Gamard <stephane.gamard@searchbox.com> | 2014-07-28 10:46:20 +0200 |
commit | 0f9d1f97155997b814a90dbb3914935ab4590f76 (patch) | |
tree | 7f518d6e28479f054a3cfbdd6230e382f1234d13 /server/sonar-process | |
parent | c799e9745bb3f33e7146b870853ede4eb05a8a1f (diff) | |
download | sonarqube-0f9d1f97155997b814a90dbb3914935ab4590f76.tar.gz sonarqube-0f9d1f97155997b814a90dbb3914935ab4590f76.zip |
SONAR-4898 - Fixed logger levels and messages
Diffstat (limited to 'server/sonar-process')
-rw-r--r-- | server/sonar-process/src/main/java/org/sonar/process/ProcessWrapper.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/sonar-process/src/main/java/org/sonar/process/ProcessWrapper.java b/server/sonar-process/src/main/java/org/sonar/process/ProcessWrapper.java index 263e3c6c242..7cecc3001de 100644 --- a/server/sonar-process/src/main/java/org/sonar/process/ProcessWrapper.java +++ b/server/sonar-process/src/main/java/org/sonar/process/ProcessWrapper.java @@ -130,7 +130,7 @@ public class ProcessWrapper extends Thread { processBuilder.environment().putAll(envProperties); try { - LOGGER.debug("Execute command: {}", StringUtils.join(command, " ")); + LOGGER.info("Starting {} process with command line: {}", getName(), StringUtils.join(command, " ")); process = processBuilder.start(); errorGobbler = new StreamGobbler(process.getErrorStream(), this.getName() + "-ERROR"); outputGobbler = new StreamGobbler(process.getInputStream(), this.getName()); @@ -238,7 +238,7 @@ public class ProcessWrapper extends Thread { JMXConnector jmxConnector = JMXConnectorFactory.connect(jmxUrl, null); MBeanServerConnection mBeanServer = jmxConnector.getMBeanServerConnection(); ProcessMXBean bean = JMX.newMBeanProxy(mBeanServer, Process.objectNameFor(processName), ProcessMXBean.class); - LOGGER.info("ProcessWrapper::waitForJMX -- Connected to JMX Server with URL: {}", jmxUrl.toString()); + LOGGER.info("{} process up and running, listening to its state with url: '{}'", getName(), jmxUrl.toString()); return bean; } catch (MalformedURLException e) { throw new IllegalStateException("JMXUrl is not valid", e); @@ -253,6 +253,7 @@ public class ProcessWrapper extends Thread { public void terminate() { if (processMXBean != null) { + LOGGER.info("Stopping {} process", getName()); processMXBean.terminate(); try { this.join(); @@ -260,6 +261,7 @@ public class ProcessWrapper extends Thread { // ignore } processMXBean = null; + LOGGER.info("{} process stopped", getName()); } } |