forked from I2P_Developers/i2p.i2p
log tweak
This commit is contained in:
@@ -1274,10 +1274,10 @@ public class NTCPConnection implements FIFOBandwidthLimiter.CompleteListener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (_log.shouldLog(Log.ERROR))
|
if (_log.shouldLog(Log.WARN))
|
||||||
_log.error("CRC incorrect for message " + _messagesRead + " (calc=" + val + " expected=" + _expectedCrc + ") size=" + _size + " blocks " + _blocks);
|
_log.warn("CRC incorrect for message " + _messagesRead + " (calc=" + val + " expected=" + _expectedCrc + ") size=" + _size + " blocks " + _blocks);
|
||||||
_context.statManager().addRateData("ntcp.corruptI2NPCRC", 1, getUptime());
|
_context.statManager().addRateData("ntcp.corruptI2NPCRC", 1, getUptime());
|
||||||
// should we try to read in the message and keep going?
|
// FIXME should we try to read in the message and keep going?
|
||||||
close();
|
close();
|
||||||
// databuf is lost
|
// databuf is lost
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user