forked from I2P_Developers/i2p.i2p
remove excess logging
This commit is contained in:
@@ -85,17 +85,10 @@ class PacketQueue implements SendMessageStatusListener {
|
|||||||
//if (tagsSent == null)
|
//if (tagsSent == null)
|
||||||
// tagsSent = new HashSet(0);
|
// tagsSent = new HashSet(0);
|
||||||
|
|
||||||
// cache this from before sendMessage
|
|
||||||
String conStr = null;
|
|
||||||
if (_log.shouldLog(Log.DEBUG))
|
|
||||||
conStr = (packet.getConnection() != null ? packet.getConnection().toString() : "");
|
|
||||||
if (packet.getAckTime() > 0) {
|
if (packet.getAckTime() > 0) {
|
||||||
if (_log.shouldLog(Log.DEBUG))
|
if (_log.shouldLog(Log.DEBUG))
|
||||||
_log.debug("Not resending " + packet);
|
_log.debug("Not resending " + packet);
|
||||||
return false;
|
return false;
|
||||||
} else {
|
|
||||||
if (_log.shouldLog(Log.DEBUG))
|
|
||||||
_log.debug("Sending... " + packet);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ByteArray ba = _cache.acquire();
|
ByteArray ba = _cache.acquire();
|
||||||
@@ -205,13 +198,6 @@ class PacketQueue implements SendMessageStatusListener {
|
|||||||
//packet.setKeyUsed(keyUsed);
|
//packet.setKeyUsed(keyUsed);
|
||||||
//packet.setTagsSent(tagsSent);
|
//packet.setTagsSent(tagsSent);
|
||||||
packet.incrementSends();
|
packet.incrementSends();
|
||||||
if (_log.shouldLog(Log.DEBUG)) {
|
|
||||||
String msg = "SEND " + packet
|
|
||||||
+ " send # " + packet.getNumSends()
|
|
||||||
+ " sendTime: " + (end-begin)
|
|
||||||
+ " con: " + conStr;
|
|
||||||
_log.debug(msg);
|
|
||||||
}
|
|
||||||
Connection c = packet.getConnection();
|
Connection c = packet.getConnection();
|
||||||
String suffix = (c != null ? "wsize " + c.getOptions().getWindowSize() + " rto " + c.getOptions().getRTO() : null);
|
String suffix = (c != null ? "wsize " + c.getOptions().getWindowSize() + " rto " + c.getOptions().getRTO() : null);
|
||||||
if (_log.shouldDebug())
|
if (_log.shouldDebug())
|
||||||
|
Reference in New Issue
Block a user