songwanging created NUTCH-2256:
----------------------------------
Summary: Inconsistent log level practice
Key: NUTCH-2256
URL: https://issues.apache.org/jira/browse/NUTCH-2256
Project: Nutch
Issue Type: Bug
Components: fetcher
Affects Versions: 2.3.1, 2.3, 2.2
Reporter: songwanging
Priority: Minor
In method "run()" of class: apache-nutch
2.3.1\src\java\org\apache\nutch\fetcher\FetcherReducer.java
The log level is not correct, after checking "LOG.isDebugEnabled()", we should
use "LOG.debug(msg, e);", while now we use " LOG.info(msg, e);". In this case,
the log level is inconsistent and developers may lose debug messages because of
this.
The related source code is as follows:
if (LOG.isDebugEnabled()) {
LOG.info("Crawl delay for queue: " + fit.queueID
+ " is set to " + fiq.crawlDelay
+ " as per robots.txt. url: " + fit.url);
}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)