I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 687ca781 authored by jrandom's avatar jrandom Committed by zzz
Browse files

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

parent 3053c797
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,9 @@ public class DatabaseLookupMessage extends I2NPMessageImpl { ...@@ -58,7 +58,9 @@ public class DatabaseLookupMessage extends I2NPMessageImpl {
// we do this in the writeMessage so we know that we have all the data // we do this in the writeMessage so we know that we have all the data
int dosCount = detectDoS(context); int dosCount = detectDoS(context);
if (dosCount > 0) { 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"));
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment