- Include old commons logging classes in commons-logging.jar
    - Preserve manifests in Jetty/Tomcat jars
  * Jetty Logger: Promote warns to erros when a Throwable is the second arg
This commit is contained in:
zzz
2012-03-11 18:30:43 +00:00
parent f91f83faef
commit 703f28e87d
4 changed files with 26 additions and 11 deletions

View File

@@ -102,7 +102,7 @@ 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);
_log.error(msg, (Throwable) arg0);
} else if (_log.shouldLog(Log.WARN)) {
synchronized(_buffer) {
format(msg,arg0,arg1);