Commit 8db72b40 authored by Andre Freyssinet's avatar Andre Freyssinet

Logging enhancements, avoid useless stacktrace.

parent bfc1413a
...@@ -202,12 +202,8 @@ public class ServiceManager implements Serializable { ...@@ -202,12 +202,8 @@ public class ServiceManager implements Serializable {
try { try {
start(desc); start(desc);
} catch (Exception exc) { } catch (Exception exc) {
if (xlogmon.isLoggable(BasicLevel.DEBUG)) xlogmon.log(BasicLevel.ERROR,
xlogmon.log(BasicLevel.ERROR, getName() + ", cannot start service:" + desc.getClassName(), exc);
getName() + ", cannot start service:" + desc.getClassName(), exc);
else
xlogmon.log(BasicLevel.ERROR,
getName() + ", cannot start service:" + desc.getClassName());
if (exitOnFailure) if (exitOnFailure)
throw new Exception("Cannot start service " + desc.getClassName()); throw new Exception("Cannot start service " + desc.getClassName());
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment