You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Gerhard Gossen (JIRA)" <ji...@apache.org> on 2014/09/04 15:13:51 UTC
[jira] [Created] (NUTCH-1834) GeneratorMapper behavior depends on
log level
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)