I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit bb33b358 authored by zzz's avatar zzz
Browse files

Change log level for Jetty warnings with exceptions

from error to warn (ticket #1551)
parent 572f071c
No related branches found
No related tags found
No related merge requests found
......@@ -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.error(msg, (Throwable) arg0);
warn(msg, (Throwable) arg0);
} else if (_log.shouldLog(Log.WARN)) {
synchronized(_buffer) {
format(msg,arg0,arg1);
......@@ -113,11 +113,12 @@ public class I2PLogger implements Logger
public void warn(String msg, Throwable th)
{
// This doesn't cover ClassNotFoundException, etc.
//if (th instanceof RuntimeException || th instanceof Error)
_log.error(msg, th);
//else
// _log.warn(msg,th);
// some of these are serious, some aren't
// no way to get it right
if (th != null)
_log.logAlways(Log.WARN, msg + ": " + th);
else
_log.logAlways(Log.WARN, msg);
}
private void format(String msg, Object arg0, Object arg1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment