[
https://issues.apache.org/jira/browse/NUTCH-1834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14257115#comment-14257115
]
Sebastian Nagel commented on NUTCH-1834:
----------------------------------------
Good catch!
> 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
> Assignee: Sebastian Nagel
> Fix For: 2.3
>
> Attachments: NUTCH-1834.patch
>
>
> 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)