*) Bugfix for suppressing of stacktrace in log on crawler error "unknown host"

See: http://www.yacy-forum.de/viewtopic.php?p=8615#8615

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@600 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 20 years ago
parent 3c1e105009
commit 34790acf02

@ -455,6 +455,8 @@ public final class plasmaCrawlWorker extends Thread {
retryCrawling = true; retryCrawling = true;
} else if (errorMsg.indexOf("Connection refused") >= 0) { } else if (errorMsg.indexOf("Connection refused") >= 0) {
log.logWarning("CRAWLER Connection refused while trying to connect to '" + url.toString() + "'."); log.logWarning("CRAWLER Connection refused while trying to connect to '" + url.toString() + "'.");
} else {
log.logError("CRAWLER Unexpected Error with URL '" + url.toString() + "': " + e.toString(),e);
} }
@ -488,8 +490,6 @@ public final class plasmaCrawlWorker extends Thread {
--crawlingRetryCount, --crawlingRetryCount,
false false
); );
} else {
log.logError("CRAWLER LOADER ERROR2 with URL=" + url.toString() + ": " + e.toString(),e);
} }
} else { } else {
// this may happen if the targeted host does not exist or anything with the // this may happen if the targeted host does not exist or anything with the

Loading…
Cancel
Save