Gerhard Gossen created NUTCH-1834:
-------------------------------------

             Summary: GeneratorMapper behavior depends on log level
                 Key: NUTCH-1834
                 URL: https://issues.apache.org/jira/browse/NUTCH-1834
             Project: Nutch
          Issue Type: Bug
          Components: generator
    Affects Versions: 2.2.1
            Reporter: Gerhard Gossen


In GeneratorMapper, two {{return}} statements are shifted by a line so that 
they end up in a {{if (LOG.isWarnEnabled())}} block. Therefore a change of the 
log level will change the behavior of the generator, i.e. an URL where an 
IndexFilters throws an exception will still be generated.

The attached patch removes the {{if}} block completely by using SLF4J's 
placeholders. This avoids the unnecessary string concatenations that made the 
{{if}} necessary.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to