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

Skip to content
Snippets Groups Projects
Commit 70adc4df authored by zab2's avatar zab2
Browse files

debug log the criteria for FF

parent c47f491e
No related branches found
No related tags found
No related merge requests found
...@@ -141,6 +141,23 @@ class FloodfillMonitorJob extends JobImpl { ...@@ -141,6 +141,23 @@ class FloodfillMonitorJob extends JobImpl {
happy = false; happy = false;
} }
} }
if (_log.shouldLog(Log.DEBUG)) {
final RouterContext rc = getContext();
final String log = String.format(
"FF criteria breakdown: happy=%b, capabilities=%s, maxLag=%d, known=%d, " +
"active=%d, participating=%d, offset=%d, ssuAddr=%b",
happy,
rc.router().getRouterInfo().getCapabilities(),
rc.jobQueue().getMaxLag(),
_facade.getKnownRouters(),
rc.commSystem().countActivePeers(),
rc.tunnelManager().getParticipatingCount(),
Math.abs(rc.clock().getOffset()),
rc.router().getRouterInfo().getTargetAddress("SSU")
);
_log.debug(log);
}
// Too few, and we're reachable, let's volunteer // Too few, and we're reachable, let's volunteer
......
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