Changeset bb33b35 for apps/jetty


Ignore:
Timestamp:
May 2, 2015 2:36:39 PM (5 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
6385c41, e8bc0bd
Parents:
572f071
Message:

Change log level for Jetty warnings with exceptions
from error to warn (ticket #1551)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/jetty/java/src/net/i2p/jetty/I2PLogger.java

    r572f071 rbb33b35  
    103103            _log.warn(msg);
    104104        } else if (arg0 != null && arg1 == null && arg0 instanceof Throwable) {
    105             _log.error(msg, (Throwable) arg0);
     105            warn(msg, (Throwable) arg0);
    106106        } else if (_log.shouldLog(Log.WARN)) {
    107107            synchronized(_buffer) {
     
    114114    public void warn(String msg, Throwable th)
    115115    {
    116         // This doesn't cover ClassNotFoundException, etc.
    117         //if (th instanceof RuntimeException || th instanceof Error)
    118             _log.error(msg, th);
    119         //else
    120         //    _log.warn(msg,th);
     116        // some of these are serious, some aren't
     117        // no way to get it right
     118        if (th != null)
     119            _log.logAlways(Log.WARN, msg + ": " + th);
     120        else
     121            _log.logAlways(Log.WARN, msg);
    121122    }
    122123   
Note: See TracChangeset for help on using the changeset viewer.