From 104594ed596476e08a6dd902b7dc941fb33ecb9b Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Sat, 15 Oct 2011 17:15:48 +0000 Subject: [PATCH] log cleanup --- core/java/src/net/i2p/data/RouterInfo.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/java/src/net/i2p/data/RouterInfo.java b/core/java/src/net/i2p/data/RouterInfo.java index 80fbd0b60a..ca44204030 100644 --- a/core/java/src/net/i2p/data/RouterInfo.java +++ b/core/java/src/net/i2p/data/RouterInfo.java @@ -237,7 +237,7 @@ public class RouterInfo extends DatabaseEntry { if (_addresses == null) throw new DataFormatException("Router addressess isn't set? wtf!"); if (_options == null) throw new DataFormatException("Router options isn't set? wtf!"); - long before = Clock.getInstance().now(); + //long before = Clock.getInstance().now(); ByteArrayOutputStream out = new ByteArrayOutputStream(6*1024); try { _identity.writeBytes(out); @@ -280,8 +280,10 @@ public class RouterInfo extends DatabaseEntry { throw new DataFormatException("IO Error getting bytes", ioe); } byte data[] = out.toByteArray(); - long after = Clock.getInstance().now(); - _log.debug("getBytes() took " + (after - before) + "ms"); + //if (_log.shouldLog(Log.DEBUG)) { + // long after = Clock.getInstance().now(); + // _log.debug("getBytes() took " + (after - before) + "ms"); + //} if (CACHE_ALL || _shouldCache) _byteified = data; return data; -- GitLab