the DoS isn't CRIT and we log instances and publish the stat appropriately

This commit is contained in:
jrandom
2004-08-19 23:18:38 +00:00
committed by zzz
parent 3053c797e8
commit 687ca781ab

View File

@ -58,7 +58,9 @@ public class DatabaseLookupMessage extends I2NPMessageImpl {
// we do this in the writeMessage so we know that we have all the data
int dosCount = detectDoS(context);
if (dosCount > 0) {
_log.log(Log.CRIT, "Are we flooding the network with NetDb messages? (" + dosCount + " messages so far)", new Exception("Flood cause"));
if (_log.shouldLog(Log.WARN))
_log.warn("Are we flooding the network with NetDb messages? (" + dosCount
+ " messages so far)", new Exception("Flood cause"));
}
}
}