Skip to content

armgit / nutch

Public Imported from GitHub
0

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.txt
index 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.java
index 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
// unblock
fetchQueues.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);
}
}