From 687ca781ab6f336f2a834c3084bf719dc8e35308 Mon Sep 17 00:00:00 2001 From: jrandom Date: Thu, 19 Aug 2004 23:18:38 +0000 Subject: [PATCH] the DoS isn't CRIT and we log instances and publish the stat appropriately --- router/java/src/net/i2p/data/i2np/DatabaseLookupMessage.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/router/java/src/net/i2p/data/i2np/DatabaseLookupMessage.java b/router/java/src/net/i2p/data/i2np/DatabaseLookupMessage.java index 24aec9447..e2e9514b6 100644 --- a/router/java/src/net/i2p/data/i2np/DatabaseLookupMessage.java +++ b/router/java/src/net/i2p/data/i2np/DatabaseLookupMessage.java @@ -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")); } } }