nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Furkan KAMACI (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NUTCH-2345) FetchItemQueue logs are logged with wrong class name
Date Mon, 16 Jan 2017 18:15:26 GMT

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

Furkan KAMACI commented on NUTCH-2345:
--------------------------------------

[~lewismc] Such mistakes are usual when some reference code is copied and created a new class.
This is a generic code to get class name and which is used at Solr now:

{code:java}
private static final Logger LOG = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
{code}

I can switch all the loggers to that convention?

> FetchItemQueue logs are logged with wrong class name
> ----------------------------------------------------
>
>                 Key: NUTCH-2345
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2345
>             Project: Nutch
>          Issue Type: Bug
>          Components: fetcher
>    Affects Versions: 1.11, 1.12
>         Environment: Any
>            Reporter: Monika Gupta
>            Assignee: Furkan KAMACI
>            Priority: Minor
>             Fix For: 1.13
>
>
> I ran bin/nutch fetch and notice that the log statements of class FetchItemQueue.java
are logged in logs/hadoop.log with wrong file name as FetchItemQueues.java
> Refer the execution log:
> 2017-01-06 15:31:25,562 INFO  fetcher.FetchItemQueues -   maxThreads    = 1
> 2017-01-06 15:31:28,565 INFO  fetcher.FetchItemQueues -   inProgress    = 0
> Issue is in the logger for class FetchItemQueue.java. 
> Currently it is-
> private static final Logger LOG = LoggerFactory.getLogger(FetchItemQueues.class);
> Correction: It should be-
> private static final Logger LOG = LoggerFactory.getLogger(FetchItemQueue.class);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message