Sebastian Nagel created NUTCH-3118:
--------------------------------------

             Summary: Logging pattern missing one argument placeholder
                 Key: NUTCH-3118
                 URL: https://issues.apache.org/jira/browse/NUTCH-3118
             Project: Nutch
          Issue Type: Bug
          Components: logging, plugin
    Affects Versions: 1.19
            Reporter: Sebastian Nagel
            Assignee: Sebastian Nagel
             Fix For: 1.21


{noformat}
2025-07-16 09:52:00,603 INFO o.a.n.p.PluginRepository [main] Registered 
Extension-Points:
2025-07-16T07:52:00.603565Z main WARN found 1 argument placeholders, but 
provided 2 for pattern `        ({})`
2025-07-16T07:52:00.603702Z main WARN found 1 argument placeholders, but 
provided 2 for pattern `        ({})`
{noformat}

This issue was observed while testing a release candidate for 1.21. Because of 
the eye-catching warning for every Nutch tool, I'm going to include the fix 
into 1.21.

This useful warning seems to be a new feature of the logging libraries. Before 
(Nutch 1.19 and 1.20) the log messages were simply missing one parameter:

{noformat}
2025-07-11 15:50:17,951 INFO o.a.n.p.PluginRepository [main] Registered 
Extension-Points:
2025-07-11 15:50:17,951 INFO o.a.n.p.PluginRepository [main]        (Nutch 
Content Parser)
2025-07-11 15:50:17,951 INFO o.a.n.p.PluginRepository [main]        (Nutch URL 
Filter)
2025-07-11 15:50:17,951 INFO o.a.n.p.PluginRepository [main]        (HTML Parse 
Filter)
{noformat}

With the fix applied, it's:

{noformat}
2025-07-16 09:56:06,849 INFO o.a.n.p.PluginRepository [main] Registered 
Extension-Points:
2025-07-16 09:56:06,849 INFO o.a.n.p.PluginRepository [main]    Nutch Content 
Parser (org.apache.nutch.parse.Parser)
2025-07-16 09:56:06,849 INFO o.a.n.p.PluginRepository [main]    Nutch URL 
Filter (org.apache.nutch.net.URLFilter)
2025-07-16 09:56:06,849 INFO o.a.n.p.PluginRepository [main]    HTML Parse 
Filter (org.apache.nutch.parse.HtmlParseFilter)
{noformat}





--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to