Changeset fcb835d for router


Ignore:
Timestamp:
Jan 13, 2018 12:59:48 PM (3 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
8ef042a
Parents:
7493134
Message:

log tweaks for b32

Location:
router/java/src/net/i2p/router
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/client/ClientManager.java

    r7493134 rfcb835d  
    298298    public int destinationEstablished(ClientConnectionRunner runner, Destination dest) {
    299299        if (_log.shouldLog(Log.DEBUG))
    300             _log.debug("DestinationEstablished called for destination " + dest.calculateHash().toBase64());
     300            _log.debug("DestinationEstablished called for destination " + dest.toBase32());
    301301
    302302        synchronized (_pendingRunners) {
     
    322322        }
    323323        if (rv == SessionStatusMessage.STATUS_INVALID) {
    324             _log.log(Log.CRIT, "Client attempted to register duplicate destination " + dest.calculateHash().toBase64());
     324            _log.log(Log.CRIT, "Client attempted to register duplicate destination " + dest.toBase32());
    325325        } else if (rv == SessionStatusMessage.STATUS_REFUSED) {
    326             _log.error("Max sessions exceeded " + dest.calculateHash().toBase64());
     326            _log.error("Max sessions exceeded " + dest.toBase32());
    327327        }
    328328        return rv;
     
    448448            if (_log.shouldLog(Log.WARN))
    449449                _log.warn("Cannot request the lease set, as we can't find a client runner for "
    450                           + dest.calculateHash().toBase64() + ".  disconnected?");
     450                          + dest.toBase32() + ".  disconnected?");
    451451            _ctx.jobQueue().addJob(onFailedJob);
    452452        } else {
  • router/java/src/net/i2p/router/client/ClientManagerFacadeImpl.java

    r7493134 rfcb835d  
    9797            if (howLongAgo > MAX_TIME_TO_REBUILD) {
    9898                if (_log.shouldLog(Log.ERROR))
    99                     _log.error("Client " + dest.calculateHash().toBase64().substring(0,6)
     99                    _log.error("Client " + dest.toBase32()
    100100                               + " has a leaseSet that expired " + DataHelper.formatDuration(howLongAgo) + " ago");
    101101                lively = false;
  • router/java/src/net/i2p/router/tunnel/pool/TunnelPoolManager.java

    r7493134 rfcb835d  
    129129        }
    130130        if (_log.shouldLog(Log.ERROR))
    131             _log.error("Want the inbound tunnel for " + destination.calculateHash() +
     131            _log.error("Want the inbound tunnel for " + destination.toBase32() +
    132132                     " but there isn't a pool?");
    133133        return null;
     
    205205        }
    206206        if (_log.shouldLog(Log.ERROR))
    207             _log.error("Want the inbound tunnel for " + destination.calculateHash() +
     207            _log.error("Want the inbound tunnel for " + destination.toBase32() +
    208208                     " but there isn't a pool?");
    209209        return null;
     
    404404        Hash dest = client.calculateHash();
    405405        if (_log.shouldLog(Log.DEBUG))
    406             _log.debug("Building tunnels for the client " + dest + ": " + settings);
     406            _log.debug("Building tunnels for the client " + client.toBase32() + ": " + settings);
    407407        TunnelPool inbound = null;
    408408        TunnelPool outbound = null;
     
    457457            if (inbound != null || outbound != null) {
    458458                if (_log.shouldLog(Log.WARN))
    459                     _log.warn("already have alias " + dest);
     459                    _log.warn("already have alias " + dest.toBase32());
    460460                return false;
    461461            }
     
    481481        }
    482482        if (_log.shouldLog(Log.WARN))
    483             _log.warn("Added " + h + " as alias for " + e + " with settings " + settings);
     483            _log.warn("Added " + dest.toBase32() + " as alias for " + existingClient.toBase32() + " with settings " + settings);
    484484        return true;
    485485    }
     
    539539        if (destination == null) return;
    540540        if (_log.shouldLog(Log.DEBUG))
    541             _log.debug("Removing tunnels for the client " + destination);
     541            _log.debug("Removing tunnels for the client " + destination.toBase32());
    542542        if (_context.clientManager().isLocal(destination)) {
    543543            // race with buildTunnels() on restart of a client
    544544            if (_log.shouldLog(Log.WARN))
    545                 _log.warn("Not removing pool still registered with client manager: " + destination.toBase64(), new Exception("i did it"));
     545                _log.warn("Not removing pool still registered with client manager: " + destination.toBase32(), new Exception("i did it"));
    546546            return;
    547547        }
Note: See TracChangeset for help on using the changeset viewer.