Github user sebastian-nagel commented on a diff in the pull request:

    https://github.com/apache/nutch/pull/166#discussion_r96527045
  
    --- Diff: src/java/org/apache/nutch/parse/ParseUtil.java ---
    @@ -237,7 +237,7 @@ public void processSitemapParse(String url, WebPage 
page,
               try {
                 reversedUrl = TableUtil.reverseUrl(toUrl); // collect it
               } catch (MalformedURLException e) {
    -            e.printStackTrace();
    +            LOG.error("MalformedURLException occurred: ", e);
    --- End diff --
    
    That a specific exception happened is obvious, would be better to explain 
what happened with which input, e.g.
    ```
    LOG.error("Failed to reverse URL {}: {}", toUrl, e.getMessage());
    ```
    This also applies to many other of the new log messages. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to