Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-2256

Inconsistent log level practice

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2, 2.3, 1.11, 2.3.1
    • Fix Version/s: 2.4, 1.12
    • Component/s: fetcher
    • Labels:
      None

      Description

      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);
      }

        Attachments

          Activity

            People

            • Assignee:
              snagel Sebastian Nagel
              Reporter:
              songwang songwanging
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: