Skip to content

Commit

Permalink
HTTPLoader: reduced stackTraces
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4664 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
danielr committed Apr 7, 2008
1 parent 8b2efb6 commit 081ed1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/de/anomic/plasma/crawler/plasmaHTTPLoader.java
Expand Up @@ -52,6 +52,7 @@
import java.net.NoRouteToHostException;
import java.net.SocketException;
import java.net.UnknownHostException;
import java.util.Arrays;
import java.util.Date;

import de.anomic.http.HttpClient;
Expand Down Expand Up @@ -377,6 +378,9 @@ private plasmaHTCache.Entry load(plasmaCrawlEntry entry, String parserMode, int
} else if ((errorMsg != null) && (errorMsg.indexOf("Connection refused") >= 0)) {
this.log.logWarning("CRAWLER Connection refused while trying to connect to '" + entry.url().toString() + "'.");
failreason = plasmaCrawlEURL.DENIED_CONNECTION_REFUSED;
} else if ((errorMsg != null) && (errorMsg.indexOf("Circular redirect to '")>= 0)) {
this.log.logWarning("CRAWLER Redirect Error with URL '" + entry.url().toString() + "': "+ e.toString());
failreason = plasmaCrawlEURL.DENIED_REDIRECTION_COUNTER_EXCEEDED;
} else if ((errorMsg != null) && (errorMsg.indexOf("There is not enough space on the disk") >= 0)) {
this.log.logSevere("CRAWLER Not enough space on the disk detected while crawling '" + entry.url().toString() + "'. " +
"Pausing crawlers. ");
Expand Down

0 comments on commit 081ed1d

Please sign in to comment.