You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Sebastian Nagel (JIRA)" <ji...@apache.org> on 2014/12/23 16:50:13 UTC

[jira] [Updated] (NUTCH-1834) GeneratorMapper behavior depends on log level

     [ https://issues.apache.org/jira/browse/NUTCH-1834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebastian Nagel updated NUTCH-1834:
-----------------------------------
    Fix Version/s: 2.3

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