You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "songwanging (JIRA)" <ji...@apache.org> on 2016/04/29 00:02:12 UTC

[jira] [Created] (NUTCH-2256) Inconsistent log level practice

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)