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 {
try {
start(desc);
} catch (Exception exc) {
if (xlogmon.isLoggable(BasicLevel.DEBUG))
xlogmon.log(BasicLevel.ERROR,
getName() + ", cannot start service:" + desc.getClassName(), exc);
else
xlogmon.log(BasicLevel.ERROR,
getName() + ", cannot start service:" + desc.getClassName());
xlogmon.log(BasicLevel.ERROR,
getName() + ", cannot start service:" + desc.getClassName(), exc);
if (exitOnFailure)
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