diff --git a/router/java/src/net/i2p/router/client/ClientManager.java b/router/java/src/net/i2p/router/client/ClientManager.java index 521b15ccf3f8cc2bb8d8d0b37a66dc890d4d87c3..d145dc2e28c7edb0a696ef21cf3414bec5dffc33 100644 --- a/router/java/src/net/i2p/router/client/ClientManager.java +++ b/router/java/src/net/i2p/router/client/ClientManager.java @@ -297,7 +297,7 @@ class ClientManager { */ public int destinationEstablished(ClientConnectionRunner runner, Destination dest) { if (_log.shouldLog(Log.DEBUG)) - _log.debug("DestinationEstablished called for destination " + dest.calculateHash().toBase64()); + _log.debug("DestinationEstablished called for destination " + dest.toBase32()); synchronized (_pendingRunners) { _pendingRunners.remove(runner); @@ -321,9 +321,9 @@ class ClientManager { } } if (rv == SessionStatusMessage.STATUS_INVALID) { - _log.log(Log.CRIT, "Client attempted to register duplicate destination " + dest.calculateHash().toBase64()); + _log.log(Log.CRIT, "Client attempted to register duplicate destination " + dest.toBase32()); } else if (rv == SessionStatusMessage.STATUS_REFUSED) { - _log.error("Max sessions exceeded " + dest.calculateHash().toBase64()); + _log.error("Max sessions exceeded " + dest.toBase32()); } return rv; } @@ -447,7 +447,7 @@ class ClientManager { if (runner == null) { if (_log.shouldLog(Log.WARN)) _log.warn("Cannot request the lease set, as we can't find a client runner for " - + dest.calculateHash().toBase64() + ". disconnected?"); + + dest.toBase32() + ". disconnected?"); _ctx.jobQueue().addJob(onFailedJob); } else { runner.requestLeaseSet(dest.calculateHash(), set, timeout, onCreateJob, onFailedJob); diff --git a/router/java/src/net/i2p/router/client/ClientManagerFacadeImpl.java b/router/java/src/net/i2p/router/client/ClientManagerFacadeImpl.java index b08517a7a98125521dca85745a07ba9fdd6f0519..9e2a967b475a5341785e091b4967de31338b0281 100644 --- a/router/java/src/net/i2p/router/client/ClientManagerFacadeImpl.java +++ b/router/java/src/net/i2p/router/client/ClientManagerFacadeImpl.java @@ -96,7 +96,7 @@ public class ClientManagerFacadeImpl extends ClientManagerFacade implements Inte long howLongAgo = _context.clock().now() - ls.getEarliestLeaseDate(); if (howLongAgo > MAX_TIME_TO_REBUILD) { if (_log.shouldLog(Log.ERROR)) - _log.error("Client " + dest.calculateHash().toBase64().substring(0,6) + _log.error("Client " + dest.toBase32() + " has a leaseSet that expired " + DataHelper.formatDuration(howLongAgo) + " ago"); lively = false; } diff --git a/router/java/src/net/i2p/router/tunnel/pool/TunnelPoolManager.java b/router/java/src/net/i2p/router/tunnel/pool/TunnelPoolManager.java index 8299d892aaf1c5cfc4990f6bd4f993cef5206f6b..1a2b168a58b6e38f09ce5e5d69157d1d49c18443 100644 --- a/router/java/src/net/i2p/router/tunnel/pool/TunnelPoolManager.java +++ b/router/java/src/net/i2p/router/tunnel/pool/TunnelPoolManager.java @@ -128,7 +128,7 @@ public class TunnelPoolManager implements TunnelManagerFacade { return pool.selectTunnel(); } if (_log.shouldLog(Log.ERROR)) - _log.error("Want the inbound tunnel for " + destination.calculateHash() + + _log.error("Want the inbound tunnel for " + destination.toBase32() + " but there isn't a pool?"); return null; } @@ -204,7 +204,7 @@ public class TunnelPoolManager implements TunnelManagerFacade { return pool.selectTunnel(closestTo); } if (_log.shouldLog(Log.ERROR)) - _log.error("Want the inbound tunnel for " + destination.calculateHash() + + _log.error("Want the inbound tunnel for " + destination.toBase32() + " but there isn't a pool?"); return null; } @@ -403,7 +403,7 @@ public class TunnelPoolManager implements TunnelManagerFacade { public void buildTunnels(Destination client, ClientTunnelSettings settings) { Hash dest = client.calculateHash(); if (_log.shouldLog(Log.DEBUG)) - _log.debug("Building tunnels for the client " + dest + ": " + settings); + _log.debug("Building tunnels for the client " + client.toBase32() + ": " + settings); TunnelPool inbound = null; TunnelPool outbound = null; @@ -456,7 +456,7 @@ public class TunnelPoolManager implements TunnelManagerFacade { TunnelPool outbound = _clientOutboundPools.get(h); if (inbound != null || outbound != null) { if (_log.shouldLog(Log.WARN)) - _log.warn("already have alias " + dest); + _log.warn("already have alias " + dest.toBase32()); return false; } TunnelPool eInbound = _clientInboundPools.get(e); @@ -480,7 +480,7 @@ public class TunnelPoolManager implements TunnelManagerFacade { outbound.startup(); } if (_log.shouldLog(Log.WARN)) - _log.warn("Added " + h + " as alias for " + e + " with settings " + settings); + _log.warn("Added " + dest.toBase32() + " as alias for " + existingClient.toBase32() + " with settings " + settings); return true; } @@ -538,11 +538,11 @@ public class TunnelPoolManager implements TunnelManagerFacade { public synchronized void removeTunnels(Hash destination) { if (destination == null) return; if (_log.shouldLog(Log.DEBUG)) - _log.debug("Removing tunnels for the client " + destination); + _log.debug("Removing tunnels for the client " + destination.toBase32()); if (_context.clientManager().isLocal(destination)) { // race with buildTunnels() on restart of a client if (_log.shouldLog(Log.WARN)) - _log.warn("Not removing pool still registered with client manager: " + destination.toBase64(), new Exception("i did it")); + _log.warn("Not removing pool still registered with client manager: " + destination.toBase32(), new Exception("i did it")); return; } TunnelPool inbound = _clientInboundPools.remove(destination);