lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "KuroSaka TeruHiko (JIRA)" <>
Subject [jira] Created: (SOLR-1620) log message "created null" misleading
Date Fri, 04 Dec 2009 00:45:20 GMT
log message "created null" misleading

                 Key: SOLR-1620
             Project: Solr
          Issue Type: Bug
    Affects Versions: 1.4
            Reporter: KuroSaka TeruHiko
            Priority: Minor

Solr logs a message like this:
INFO: created null: org.apache.solr.analysis.LowerCaseFilterFactory

This sounds like the TokenFilter or Tokenizer were not created and a serious error.  But it
mealy means the component is not named.  "null" is printed because the local variable "name"
has the value null.

This is misleading.

If the text field type is not named, it should just print blank, rather than the word "null".

I would suggest that a line in src/java/org/apache/solr/util/plugin/
be changed to:
"created"+((name!=null)?(" "+name):"")+": " + plugin.getClass().getName()
"created "+name+": " + plugin.getClass().getName() );

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message