Removed superfluous check for files ending '.black' as the previous commit already excluded all other files (e.g. .ser dumps), added logging in catch-all block

pull/1/head
Roland Haeder 11 years ago committed by orbiter
parent 060fec1577
commit 952fc0e7bd

@ -35,6 +35,7 @@ import java.util.List;
import java.util.TreeMap;
import net.yacy.cora.protocol.RequestHeader;
import net.yacy.cora.util.ConcurrentLog;
import net.yacy.data.ListManager;
import net.yacy.kelondro.util.FileUtils;
import net.yacy.peers.Seed;
@ -84,7 +85,10 @@ public class BlacklistImpExp_p {
hostList.remove(peername);
peerCount++;
}
} catch (final Exception e) {/* */}
} catch (final Exception e) {
// Log exception for debug purposes ("catch-all catch")
ConcurrentLog.logException(e);
}
prop.put(DISABLED + "otherHosts", peerCount);
}
@ -93,10 +97,8 @@ public class BlacklistImpExp_p {
int count = 0;
for (String element : dirlist) {
if (element.endsWith(".black")) {
prop.putHTML("blackListNames_" + count + "_blackListName", element);
count++;
}
prop.putHTML("blackListNames_" + count + "_blackListName", element);
count++;
}
prop.put("blackListNames", count);

Loading…
Cancel
Save