Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) Adding additional logging statements to help debugging seed-upload problems See: http://www.yacy-forum.de/viewtopic.php?t=975&highlight=

theli115c4edfcc26
diff --git a/source/de/anomic/yacy/yacySeedDB.java b/source/de/anomic/yacy/yacySeedDB.java
index c9031687c..e0752b228 100644
--- a/source/de/anomic/yacy/yacySeedDB.java
+++ b/source/de/anomic/yacy/yacySeedDB.java
@@ -580,9 +580,15 @@ public class yacySeedDB {
private boolean checkCache(Vector uv, URL seedURL) throws IOException {
// check if the result can be retrieved again
Vector check = httpc.wget(seedURL, 10000, null, null, sb.remoteProxyHost, sb.remoteProxyPort);
+
+ if (check == null) {
+ serverLog.logDebug("YACY","SaveSeedList: Testing download failed ...");
+ }
+
if ((check == null) || (uv == null) || (uv.size() != check.size())) {
return false;
} else {
+ serverLog.logDebug("YACY","SaveSeedList: Comparing local and uploades seed-list ...");
int i;
for (i = 0; i < uv.size(); i++) {
if (!(((String) uv.elementAt(i)).equals((String) check.elementAt(i)))) return false;