Changeset ad1600e for router


Ignore:
Timestamp:
Mar 4, 2019 5:37:29 PM (17 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
268a3ee
Parents:
f1ed870
Message:

log tweaks

File:
1 edited

Legend:

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

    rf1ed870 rad1600e  
    5050                    if (!ls.isCurrent(Router.CLOCK_FUDGE_FACTOR)) {
    5151                        if (_log.shouldLog(Log.WARN))
    52                             _log.warn("Not publishing a LOCAL lease that isn't current - " + _dest, new Exception("Publish expired LOCAL lease?"));
     52                            _log.warn("Not publishing a LOCAL lease that isn't current - " + _dest.toBase32(), new Exception("Publish expired LOCAL lease?"));
    5353                    } else {
    5454                        if (_log.shouldLog(Log.INFO))
     
    6161                } else {
    6262                    if (_log.shouldLog(Log.WARN))
    63                         _log.warn("Client " + _dest + " is local, but we can't find a valid LeaseSet?  perhaps its being rebuilt?");
     63                        _log.warn("Client " + _dest.toBase32() + " is local, but we can't find a valid LeaseSet?  perhaps its being rebuilt?");
    6464                }
    6565                //if (false) { // floodfill doesnt require republishing
     
    7070            } else {
    7171                if (_log.shouldLog(Log.INFO))
    72                     _log.info("Client " + _dest + " is no longer local, so no more republishing their leaseSet");
     72                    _log.info("Client " + _dest.toBase32() + " is no longer local, so no more republishing their leaseSet");
    7373            }               
    7474            _facade.stopPublishing(_dest);
     
    8383    void requeueRepublish() {
    8484        if (_log.shouldLog(Log.WARN))
    85             _log.warn("FAILED publishing of the leaseSet for " + _dest);
     85            _log.warn("FAILED publishing of the leaseSet for " + _dest.toBase32());
    8686        getContext().jobQueue().removeJob(this);
    8787        requeue(RETRY_DELAY + getContext().random().nextInt(RETRY_DELAY));
     
    9494        return _lastPublished;
    9595    }
    96 
    97     /** TODO - does nothing, remove */
    98 /****
    99     private static class OnRepublishSuccess extends JobImpl {
    100         public OnRepublishSuccess(RouterContext ctx) { super(ctx); }
    101         public String getName() { return "Publish leaseSet successful"; }
    102         public void runJob() {
    103             //if (_log.shouldLog(Log.DEBUG))
    104             //    _log.debug("successful publishing of the leaseSet for " + _dest.toBase64());
    105         }
    106     }
    107 ****/
    10896
    10997    /** requeue */
Note: See TracChangeset for help on using the changeset viewer.