Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-1198

Less verbose logging when unmapped mimetypes are trying to be parsed.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: nutchgora
    • Component/s: None
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      In some scenarios one does not want to parse all mimetypes. Despite the fact that it is possible to configure what resources are being fetched (using URLFilters for instance), it cannot be avoided that resources with unmapped mimetypes are trying to be parsed. Currently this leads to log warnings with stacktraces. This possible masks more important parsing errors, such as errors in parsing itself.

      This patch removes the stacktrace for "no suitable parser found" errors. Also it display the error only once. (As opposed to what is currently the case).

        Attachments

        1. NUTCH-1198.patch
          2 kB
          Ferdy

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ferdy.g Ferdy
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: