jetty logging tweaks

This commit is contained in:
zzz
2011-12-30 21:58:16 +00:00
parent 03e86fcb24
commit 4d1736eaf6
4 changed files with 17 additions and 3 deletions

View File

@ -221,7 +221,11 @@ public class RouterConsoleRunner {
if (!workDirCreated)
System.err.println("ERROR: Unable to create Jetty temporary work directory");
Log.setLog(new I2PLogger(I2PAppContext.getGlobalContext()));
try {
Log.setLog(new I2PLogger(I2PAppContext.getGlobalContext()));
} catch (Throwable t) {
System.err.println("INFO: I2P Jetty logging class not found, logging to wrapper log");
}
// so Jetty can find WebAppConfiguration
System.setProperty("jetty.class.path", I2PAppContext.getGlobalContext().getBaseDir() + "/lib/routerconsole.jar");
_server = new Server();