diff --git a/apps/jetty/java/src/net/i2p/jetty/I2PLogger.java b/apps/jetty/java/src/net/i2p/jetty/I2PLogger.java index 7e5fe91d2cef7d12dee1f171f91c60d6c87a612b..d209c8be7b73379239fc44d8c5f10cae53512791 100644 --- a/apps/jetty/java/src/net/i2p/jetty/I2PLogger.java +++ b/apps/jetty/java/src/net/i2p/jetty/I2PLogger.java @@ -63,6 +63,8 @@ public class I2PLogger implements Logger { if (arg0 == null && arg1 == null) { _log.info(msg); + } else if (arg0 != null && arg1 == null && arg0 instanceof Throwable) { + _log.info(msg, (Throwable) arg0); } else if (_log.shouldLog(Log.INFO)) { synchronized(_buffer) { format(msg,arg0,arg1); @@ -80,6 +82,8 @@ public class I2PLogger implements Logger { if (arg0 == null && arg1 == null) { _log.debug(msg); + } else if (arg0 != null && arg1 == null && arg0 instanceof Throwable) { + _log.debug(msg, (Throwable) arg0); } else if (_log.shouldLog(Log.DEBUG)) { synchronized(_buffer) { format(msg,arg0,arg1); @@ -92,6 +96,8 @@ public class I2PLogger implements Logger { if (arg0 == null && arg1 == null) { _log.warn(msg); + } else if (arg0 != null && arg1 == null && arg0 instanceof Throwable) { + _log.warn(msg, (Throwable) arg0); } else if (_log.shouldLog(Log.WARN)) { synchronized(_buffer) { format(msg,arg0,arg1);