mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-21 00:00:13 +02:00
*) Adding additional logging statements to help debugging seed-upload problems
See: http://www.yacy-forum.de/viewtopic.php?t=975&highlight= git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@561 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
parent
751a778b54
commit
115c4edfcc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user