nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NUTCH-2592) Fetcher to log reason of failed fetches
Date Wed, 06 Jun 2018 08:09:00 GMT

    [ https://issues.apache.org/jira/browse/NUTCH-2592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16502969#comment-16502969
] 

ASF GitHub Bot commented on NUTCH-2592:
---------------------------------------

sebastian-nagel closed pull request #339: NUTCH-2592 Fetcher to log reason of failed fetches
URL: https://github.com/apache/nutch/pull/339
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/java/org/apache/nutch/fetcher/FetcherThread.java b/src/java/org/apache/nutch/fetcher/FetcherThread.java
index 4f67391f0..ffb56ce0f 100644
--- a/src/java/org/apache/nutch/fetcher/FetcherThread.java
+++ b/src/java/org/apache/nutch/fetcher/FetcherThread.java
@@ -581,7 +581,7 @@ private FetchItem queueRedirect(Text redirUrl, FetchItem fit)
 
   private void logError(Text url, String message) {
     if (LOG.isInfoEnabled()) {
-      LOG.info("{} {} fetch of {} failed with: ", getName(),
+      LOG.info("{} {} fetch of {} failed with: {}", getName(),
           Thread.currentThread().getId(), url, message);
     }
     errors.incrementAndGet();


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Fetcher to log reason of failed fetches
> ---------------------------------------
>
>                 Key: NUTCH-2592
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2592
>             Project: Nutch
>          Issue Type: Bug
>          Components: fetcher
>    Affects Versions: 1.15
>            Reporter: Sebastian Nagel
>            Priority: Major
>             Fix For: 1.15
>
>
> By a stupid mistake introduced with NUTCH-2553 (it's my fault) Fetcher does not log the
reason for a failed fetch:
> {noformat}
> 2018-06-04 09:34:40,522 INFO  fetcher.FetcherThread - FetcherThread 23 fetch of http://localhost/index.html
failed with: 
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message