SSU2: log tweaks

This commit is contained in:
zzz
2022-12-17 09:29:09 -05:00
parent 05d60d70e2
commit d9bb3d0b96
2 changed files with 4 additions and 4 deletions

View File

@@ -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.

View File

@@ -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();