Changeset 8dbc115 for router


Ignore:
Timestamp:
Aug 10, 2018 4:35:03 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
1c73be5
Parents:
62151ef
Message:

log level tweaks

Location:
router/java/src/net/i2p/router/networkdb/kademlia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/networkdb/kademlia/IterativeSearchJob.java

    r62151ef r8dbc115  
    166166    public void runJob() {
    167167        if (_facade.isNegativeCached(_key)) {
    168             if (_log.shouldLog(Log.WARN))
    169                 _log.warn("Negative cached, not searching: " + _key);
     168            if (_log.shouldInfo())
     169                _log.info("Negative cached, not searching: " + _key);
    170170            failed();
    171171            return;
     
    326326                if (VersionComparator.comp(v, since) < 0) {
    327327                    failed(peer, false);
    328                     if (_log.shouldLog(Log.WARN))
    329                         _log.warn(getJobId() + ": not sending query to old version " + v + ": " + peer);
     328                    if (_log.shouldInfo())
     329                        _log.info(getJobId() + ": not sending query to old version " + v + ": " + peer);
    330330                    return;
    331331                }
  • router/java/src/net/i2p/router/networkdb/kademlia/KademliaNetworkDatabaseFacade.java

    r62151ef r8dbc115  
    519519                _context.jobQueue().addJob(onFindJob);
    520520        } else if (isNegativeCached(key)) {
    521             if (_log.shouldLog(Log.WARN))
    522                 _log.warn("Negative cached, not searching LS: " + key);
     521            if (_log.shouldInfo())
     522                _log.info("Negative cached, not searching LS: " + key);
    523523            if (onFailedLookupJob != null)
    524524                _context.jobQueue().addJob(onFailedLookupJob);
     
    588588            _context.jobQueue().addJob(onFinishedJob);
    589589        } else if (isNegativeCached(key)) {
    590             if (_log.shouldLog(Log.WARN))
    591                 _log.warn("Negative cached, not searching dest: " + key);
     590            if (_log.shouldInfo())
     591                _log.info("Negative cached, not searching dest: " + key);
    592592        } else {
    593593            search(key, onFinishedJob, onFinishedJob, timeoutMs, true, fromLocalDest);
     
    625625                _context.jobQueue().addJob(onFailedLookupJob);
    626626        } else if (isNegativeCached(key)) {
    627             if (_log.shouldLog(Log.WARN))
    628                 _log.warn("Negative cached, not searching RI: " + key);
     627            if (_log.shouldInfo())
     628                _log.info("Negative cached, not searching RI: " + key);
    629629        } else {
    630630            search(key, onFindJob, onFailedLookupJob, timeoutMs, false);
Note: See TracChangeset for help on using the changeset viewer.