From 6991b9e2b9c14fc3b138be0d4307180961824a04 Mon Sep 17 00:00:00 2001 From: theli Date: Sat, 3 Sep 2005 15:17:19 +0000 Subject: [PATCH] *) Suppress stacktrace on crawler error for "Connection reset" See: http://www.yacy-forum.de/viewtopic.php?p=9071 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@645 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaCrawlWorker.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/de/anomic/plasma/plasmaCrawlWorker.java b/source/de/anomic/plasma/plasmaCrawlWorker.java index b22c5b3af..49a4248c0 100644 --- a/source/de/anomic/plasma/plasmaCrawlWorker.java +++ b/source/de/anomic/plasma/plasmaCrawlWorker.java @@ -41,7 +41,7 @@ package de.anomic.plasma; -import java.io.File; +import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.net.MalformedURLException; @@ -477,6 +477,8 @@ public final class plasmaCrawlWorker extends Thread { log.logSevere("CRAWLER Not enough space on the disk detected while crawling '" + url.toString() + "'. " + "Pausing crawlers. "); plasmaCrawlLoader.switchboard.pauseCrawling(); + } else if ((errorMsg != null) && (errorMsg.indexOf("Network is unreachable") >=0)) { + log.logSevere("CRAWLER Network is unreachable while trying to crawl URL '" + url.toString() + "'. "); } else { log.logSevere("CRAWLER Unexpected Error with URL '" + url.toString() + "': " + e.toString(),e); }