Commit cd2708f6 authored by Matt Tucker's avatar Matt Tucker Committed by matt

If debug log turned on, do debug logging for Jetty.

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@3034 b35dd754-fafc-0310-a699-88a17e54d16e
parent f1ac46b4
...@@ -143,8 +143,13 @@ public class AdminConsolePlugin implements Plugin { ...@@ -143,8 +143,13 @@ public class AdminConsolePlugin implements Plugin {
OutputStreamLogSink logSink = new OutputStreamLogSink(logFile.toString()); OutputStreamLogSink logSink = new OutputStreamLogSink(logFile.toString());
logSink.start(); logSink.start();
LogImpl log = (LogImpl) Factory.getFactory().getInstance(""); LogImpl log = (LogImpl) Factory.getFactory().getInstance("");
// Ignore INFO logs. // Ignore INFO logs unless debugging turned on.
log.setVerbose(-1); if (!Log.isDebugEnabled()) {
log.setVerbose(-1);
}
else {
log.setVerbose(1);
}
log.add(logSink); log.add(logSink);
jetty = new Server(); jetty = new Server();
......
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