Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) Adding additional logging output to detect crawling problems
theli48aaf703cc73
diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.javaindex 375ec6d70..56d0e50e5 100644--- a/source/de/anomic/plasma/plasmaSwitchboard.java+++ b/source/de/anomic/plasma/plasmaSwitchboard.java@@ -1101,6 +1101,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements serreason = "denied_(does_not_match_filter)";urlPool.errorURL.newEntry(nexturl, referrerHash, initiatorHash, yacyCore.seedDB.mySeed.hash,name, reason, new bitfield(plasmaURL.urlFlagLength), false);+ log.logFine("URL '" + nexturlString + "' does not match crawling filter '" + profile.generalFilter() + "'.");return reason;}@@ -1109,6 +1110,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements serreason = "denied_(cgi_url)";urlPool.errorURL.newEntry(nexturl, referrerHash, initiatorHash, yacyCore.seedDB.mySeed.hash,name, reason, new bitfield(plasmaURL.urlFlagLength), false);+ log.logFine("URL '" + nexturlString + "' is cgi URL.");return reason;}@@ -1117,6 +1119,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements serreason = "denied_(post_url)";urlPool.errorURL.newEntry(nexturl, referrerHash, initiatorHash, yacyCore.seedDB.mySeed.hash,name, reason, new bitfield(plasmaURL.urlFlagLength), false);+ log.logFine("URL '" + nexturlString + "' is post URL.");return reason;}@@ -1127,6 +1130,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements serreason = "double_(registered_in_" + dbocc + ")";urlPool.errorURL.newEntry(nexturl, referrerHash, initiatorHash, yacyCore.seedDB.mySeed.hash,name, reason, new bitfield(plasmaURL.urlFlagLength), false);+ log.logFine("URL '" + nexturlString + "' is double registered in '" + dbocc + "'.");return reason;}@@ -1140,6 +1144,10 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser((yacyCore.seedDB.mySeed.isSenior()) ||(yacyCore.seedDB.mySeed.isPrincipal())) /* qualified */;+ if ((!local)&&(!global)) {+ log.logFine("URL '" + nexturlString + "' can neither be crawled local nor global.");+ }+urlPool.noticeURL.newEntry(initiatorHash, /* initiator, needed for p2p-feedback */nexturl, /* url clear text string */loadDate, /* load date */@@ -1158,7 +1166,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements serprivate void processLocalCrawling(plasmaCrawlNURL.Entry urlEntry, plasmaCrawlProfile.entry profile, String stats) {// work off one Crawl stack entry- if ((urlEntry == null) && (urlEntry.url() == null)) {+ if ((urlEntry == null) || (urlEntry.url() == null)) {log.logInfo(stats + ": urlEntry=null");return;}