Changeset e1c3979a for apps/jetty


Ignore:
Timestamp:
Mar 6, 2012 2:01:13 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
de2b204
Parents:
46438b7
Message:
  • Jetty logger: Fix stack trace logging
File:
1 edited

Legend:

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

    r46438b7 re1c3979a  
    6464        if (arg0 == null && arg1 == null) {
    6565            _log.info(msg);
     66        } else if (arg0 != null && arg1 == null && arg0 instanceof Throwable) {
     67            _log.info(msg, (Throwable) arg0);
    6668        } else if (_log.shouldLog(Log.INFO)) {
    6769            synchronized(_buffer) {
     
    8183        if (arg0 == null && arg1 == null) {
    8284            _log.debug(msg);
     85        } else if (arg0 != null && arg1 == null && arg0 instanceof Throwable) {
     86            _log.debug(msg, (Throwable) arg0);
    8387        } else if (_log.shouldLog(Log.DEBUG)) {
    8488            synchronized(_buffer) {
     
    9397        if (arg0 == null && arg1 == null) {
    9498            _log.warn(msg);
     99        } else if (arg0 != null && arg1 == null && arg0 instanceof Throwable) {
     100            _log.warn(msg, (Throwable) arg0);
    95101        } else if (_log.shouldLog(Log.WARN)) {
    96102            synchronized(_buffer) {
Note: See TracChangeset for help on using the changeset viewer.