Apache Nutch is an extensible and scalable web crawler
NUTCH-1291 Fetcher to stringify exception on // unexpected exception
Markus Jelsma870d866b4fa6
diff --git a/CHANGES.txt b/CHANGES.txtindex 5ccaa4c60..5e1aced76 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -1,5 +1,7 @@Nutch Change Log+* NUTCH-1291 Fetcher to stringify exception on // unexpected exception (markus)+* NUTCH-965 Skip parsing for truncated documents (alexis, lewismc, ferdy)* NUTCH-1210 DomainBlacklistFilter (markus)diff --git a/src/java/org/apache/nutch/fetcher/Fetcher.java b/src/java/org/apache/nutch/fetcher/Fetcher.javaindex 6e0845e0d..f380bc598 100644--- a/src/java/org/apache/nutch/fetcher/Fetcher.java+++ b/src/java/org/apache/nutch/fetcher/Fetcher.java@@ -828,7 +828,7 @@ public class Fetcher extends Configured implements Tool,} catch (Throwable t) { // unexpected exception// unblockfetchQueues.finishFetchItem(fit);- logError(fit.url, t.toString());+ logError(fit.url, StringUtils.stringifyException(t));output(fit.url, fit.datum, null, ProtocolStatus.STATUS_FAILED, CrawlDatum.STATUS_FETCH_RETRY);}}