Clarify an error message
Status: Beta
Brought to you by:
jheaton
If a filter fails, the spider always emits a message referring to "robots.txt".
This patch clarifies the issue:
--- ./src/com/heatonresearch/httprecipes/spider/Spider.java»2006-12-23 20:22:38.000000000 +0100
+++ ../javaspider.work/./src/com/heatonresearch/httprecipes/spider/Spider.java»·2007-02-02 15:22:34.932789586 +0100
@@ -289,7 +289,7 @@
try {
filter.newHost(host, this.options.userAgent);
} catch (IOException e) {
- logger.log(Level.INFO, "Error while reading robots.txt file:"
+ logger.log(Level.INFO, "Error while applying filter:"
+ e.getMessage());
}
}
The patch.
Logged In: YES
user_id=1307875
Originator: YES
File Added: patch