* Jetty logger: Fix stack trace logging

This commit is contained in:
zzz
2012-03-06 14:01:13 +00:00
parent 46438b7412
commit e1c3979af7

View File

@@ -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);