2006-09-26 Complication

* Take back an accidental log level change
This commit is contained in:
complication
2006-09-27 04:31:34 +00:00
committed by zzz
parent 9325b806e4
commit 0a240a4436
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,7 @@
$Id: history.txt,v 1.525 2006-09-25 22:11:41 zzz Exp $
$Id: history.txt,v 1.526 2006-09-26 23:02:13 complication Exp $
2006-09-26 Complication
* Take back an accidental log level change
2006-09-26 Complication
* Subclass from Clock a RouterClock which can access router transports,

View File

@ -996,8 +996,8 @@ public class NTCPConnection implements FIFOBandwidthLimiter.CompleteListener {
} else {
long newSkew = (ourTs - ts);
if (Math.abs(newSkew*1000) > Router.CLOCK_FUDGE_FACTOR) {
if (_log.shouldLog(Log.ERROR))
_log.error("Peer's skew jumped too far (from " + _clockSkew + " s to " + newSkew + " s): " + toString());
if (_log.shouldLog(Log.WARN))
_log.warn("Peer's skew jumped too far (from " + _clockSkew + " s to " + newSkew + " s): " + toString());
_context.statManager().addRateData("ntcp.corruptSkew", newSkew, getUptime());
close();
return;