forked from I2P_Developers/i2p.i2p
SSU2: log tweaks
This commit is contained in:
@@ -429,7 +429,7 @@ public class PeerState2 extends PeerState implements SSU2Payload.PayloadCallback
|
||||
}
|
||||
if (header.getType() != DATA_FLAG_BYTE) {
|
||||
if (_log.shouldWarn())
|
||||
_log.warn("bad data pkt type " + (header.getType() & 0xff) + " size " + len + " on " + this);
|
||||
_log.warn("bad data pkt type " + header.getType() + " size " + len + " on " + this);
|
||||
// TODO if it's early:
|
||||
// If inbound, could be a retransmitted Session Confirmed,
|
||||
// ack it again.
|
||||
|
||||
@@ -180,7 +180,7 @@ class PeerStateDestroyed implements SSU2Payload.PayloadCallback, SSU2Sender {
|
||||
}
|
||||
if (header.getType() != DATA_FLAG_BYTE) {
|
||||
if (_log.shouldWarn())
|
||||
_log.warn("bad data pkt type " + (header.getType() & 0xff) + " size " + len + " on " + this);
|
||||
_log.warn("bad data pkt type " + header.getType() + " size " + len + " on " + this);
|
||||
return;
|
||||
}
|
||||
long n = header.getPacketNumber();
|
||||
@@ -356,8 +356,8 @@ class PeerStateDestroyed implements SSU2Payload.PayloadCallback, SSU2Sender {
|
||||
}
|
||||
|
||||
public void timeReached() {
|
||||
if (_log.shouldDebug())
|
||||
_log.debug("Done listening for " + PeerStateDestroyed.this);
|
||||
//if (_log.shouldDebug())
|
||||
// _log.debug("Done listening for " + PeerStateDestroyed.this);
|
||||
_ackTimer.cancel();
|
||||
_transport.removeRecentlyClosed(PeerStateDestroyed.this);
|
||||
_sendCha.destroy();
|
||||
|
||||
Reference in New Issue
Block a user