Skip to content

Commit

Permalink
- don't spam log because of some old URLs
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3227 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
karlchenofhell committed Jan 17, 2007
1 parent 7c40197 commit fdb4537
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion htroot/yacy/transferURL.java
Expand Up @@ -115,11 +115,17 @@ public static serverObjects respond(httpHeader header, serverObjects post, serve

// check if entry is well-formed
indexURLEntry.Components comp = lEntry.comp();
if ((comp.url() == null) || (lEntry.freshdate().getTime() <= freshdate)) {
if (comp.url() == null) {
yacyCore.log.logWarning("transferURL: received invalid URL from peer " + otherPeerName + "\n\tURL Property: " + urls);
continue;
}

// check whether entry is too old
if (lEntry.freshdate().getTime() <= freshdate) {
yacyCore.log.logFine("transerURL: received too old URL from peer " + otherPeerName + ": " + lEntry.freshdate());
continue;
}

// check if the entry is blacklisted
if ((blockBlacklist) && (plasmaSwitchboard.urlBlacklist.isListed(plasmaURLPattern.BLACKLIST_DHT, lEntry.hash(), comp.url()))) {
int deleted = sb.wordIndex.tryRemoveURLs(lEntry.hash());
Expand Down

0 comments on commit fdb4537

Please sign in to comment.