From cbc6aea8b443595e45cd5a195aea92ef2293a9c1 Mon Sep 17 00:00:00 2001 From: jrandom Date: Sun, 27 Jun 2004 21:20:31 +0000 Subject: [PATCH] logging --- .../src/net/i2p/router/client/ClientConnectionRunner.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/router/java/src/net/i2p/router/client/ClientConnectionRunner.java b/router/java/src/net/i2p/router/client/ClientConnectionRunner.java index 3866d16ca..f503cdbb9 100644 --- a/router/java/src/net/i2p/router/client/ClientConnectionRunner.java +++ b/router/java/src/net/i2p/router/client/ClientConnectionRunner.java @@ -257,8 +257,8 @@ public class ClientConnectionRunner { } long afterLock = _context.clock().now(); - if (afterLock - beforeLock > 50) { - _log.warn("distributeMessage.locking took too long: " + (afterLock-beforeLock) + if (_log.shouldLog(Log.DEBUG)) { + _log.warn("distributeMessage.locking took: " + (afterLock-beforeLock) + " overall, synchronized took " + (inLock - beforeLock)); } @@ -270,8 +270,8 @@ public class ClientConnectionRunner { // the following blocks as described above _manager.distributeMessage(_config.getDestination(), message.getDestination(), message.getPayload(), id); long timeToDistribute = _context.clock().now() - beforeDistribute; - if (timeToDistribute > 50) - _log.warn("Took too long to distribute in the manager to " + if (_log.shouldLog(Log.DEBUG)) + _log.warn("Time to distribute in the manager to " + message.getDestination().calculateHash().toBase64() + ": " + timeToDistribute); return id;