Changeset 8c7a39f


Ignore:
Timestamp:
Oct 19, 2010 2:33:11 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
466128c
Parents:
1400c4d
Message:
Location:
router/java
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/JobImpl.java

    r1400c4d r8c7a39f  
    4040    }
    4141   
     42    /**
     43     *  @deprecated
     44     *  As of 0.8.1, this is a noop, as it just adds classes to the log manager
     45     *  class list for no good reason. Logging in jobs is almost always
     46     *  set explicitly rather than by class name.
     47     */
    4248    void addedToQueue() {
    43         if (_context.logManager().getLog(getClass()).shouldLog(Log.DEBUG))
    44             _addedBy = new Exception();
     49        //if (_context.logManager().getLog(getClass()).shouldLog(Log.DEBUG))
     50        //    _addedBy = new Exception();
    4551    }
    4652   
     53    /**
     54     *  @deprecated
     55     *  @return null always
     56     */
    4757    public Exception getAddedBy() { return _addedBy; }
    4858    public long getMadeReadyOn() { return _madeReadyOn; }
  • router/java/src/net/i2p/router/JobQueue.java

    r1400c4d r8c7a39f  
    143143        if (job == null || !_alive) return;
    144144
    145         if (job instanceof JobImpl)
    146             ((JobImpl)job).addedToQueue();
     145        // This does nothing
     146        //if (job instanceof JobImpl)
     147        //    ((JobImpl)job).addedToQueue();
    147148
    148149        long numReady = 0;
  • router/java/src/net/i2p/router/client/ClientConnectionRunner.java

    r1400c4d r8c7a39f  
    591591                              + "] (with nonce=2), retrying after ["
    592592                              + (_context.clock().now() - _lastTried)
    593                               + "]", getAddedBy());
     593                              + "]");
    594594            } else {
    595595                if (_log.shouldLog(Log.DEBUG))
  • router/java/src/net/i2p/router/message/SendMessageDirectJob.java

    r1400c4d r8c7a39f  
    7777            if (_log.shouldLog(Log.WARN))
    7878                _log.warn("Timed out sending message " + _message + " directly (expiration = "
    79                            + new Date(_expiration) + ") to " + _targetHash.toBase64(), getAddedBy());
     79                           + new Date(_expiration) + ") to " + _targetHash.toBase64());
    8080            if (_onFail != null)
    8181                getContext().jobQueue().addJob(_onFail);
     
    105105                        _log.warn("Unable to find the router to send to: " + _targetHash
    106106                                  + " after searching for " + (getContext().clock().now()-_searchOn)
    107                                   + "ms, message: " + _message, getAddedBy());
     107                                  + "ms, message: " + _message);
    108108                    if (_onFail != null)
    109109                        getContext().jobQueue().addJob(_onFail);
  • router/java/src/net/i2p/router/tunnel/pool/TestJob.java

    r1400c4d r8c7a39f  
    318318        public void runJob() {
    319319            if (_log.shouldLog(Log.WARN))
    320                 _log.warn("Timeout: found? " + _found, getAddedBy());
     320                _log.warn("Timeout: found? " + _found);
    321321            if (!_found) {
    322322                // don't clog up the SKM with old one-tag tagsets
  • router/java/test/net/i2p/router/message/SendGarlicJob.java

    r1400c4d r8c7a39f  
    8282        if ( (after - before) > 1000) {
    8383            if (_log.shouldLog(Log.WARN))
    84                 _log.warn("Building the garlic took too long [" + (after-before)+" ms]", getAddedBy());
     84                _log.warn("Building the garlic took too long [" + (after-before)+" ms]");
    8585        } else {
    8686            if (_log.shouldLog(Log.DEBUG))
Note: See TracChangeset for help on using the changeset viewer.