mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-22 13:12:15 +00:00
the DoS isn't CRIT and we log instances and publish the stat appropriately
This commit is contained in:
1 parent
3053c797e8
commit
687ca781ab
1 file changed
+3
-1
@@ -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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user