Changeset ceac733


Ignore:
Timestamp:
Mar 7, 2018 4:19:38 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
7433eeb
Parents:
665f58d
Message:

log tweaks

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java

    r665f58d rceac733  
    331331     */
    332332    public void stop() {
    333         if (_log.shouldWarn())
    334             _log.warn("Snark stop() begin", new Exception("I did it"));
     333        if (_log.shouldDebug())
     334            _log.debug("Snark stop() begin", new Exception("I did it"));
    335335        if (_umgr != null && _uhandler != null) {
    336336            //_uhandler.shutdown();
  • router/java/src/net/i2p/router/Router.java

    r665f58d rceac733  
    809809                changeState(State.RUNNING);
    810810        }
     811        // for debugging
     812        if (_log.shouldWarn())
     813            _context.logManager().flush();
    811814    }
    812815
     
    823826                changeState(State.RUNNING);
    824827        }
     828        // for debugging
     829        if (_log.shouldWarn())
     830            _context.logManager().flush();
    825831    }
    826832
  • router/java/src/net/i2p/router/tasks/ReadConfigJob.java

    r665f58d rceac733  
    4545            _lastRead = getContext().clock().now();
    4646            Log log = getContext().logManager().getLog(ReadConfigJob.class);
    47             if (log.shouldLog(Log.WARN))
    48                 log.warn("Reloaded " + configFile);
     47            if (log.shouldDebug())
     48                log.debug("Reloaded " + configFile);
    4949        }
    5050        requeue(DELAY);
Note: See TracChangeset for help on using the changeset viewer.