change startup no-ff errror to warn

This commit is contained in:
zzz
2009-06-03 15:32:08 +00:00
parent 39e5ff7eaa
commit 59449cf513

View File

@ -100,8 +100,10 @@ class FloodOnlySearchJob extends FloodSearchJob {
if (floodfillPeers.size() <= 3) if (floodfillPeers.size() <= 3)
_shouldProcessDSRM = true; _shouldProcessDSRM = true;
if (floodfillPeers.size() <= 0) { if (floodfillPeers.size() <= 0) {
if (_log.shouldLog(Log.ERROR)) // ask anybody, they may not return the answer but they will return a few ff peers we can go look up,
_log.error("Running netDb searches against the floodfill peers, but we don't know any"); // so this situation should be temporary
if (_log.shouldLog(Log.WARN))
_log.warn("Running netDb searches against the floodfill peers, but we don't know any");
floodfillPeers = new ArrayList(_facade.getAllRouters()); floodfillPeers = new ArrayList(_facade.getAllRouters());
if (floodfillPeers.size() <= 0) { if (floodfillPeers.size() <= 0) {
if (_log.shouldLog(Log.ERROR)) if (_log.shouldLog(Log.ERROR))