SOLR-259 -- add log.log(Level.SEVERE, ... when solr home isn't found. Thanks Will!

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@546223 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2007-06-11 18:58:45 +00:00
parent 80aa3bc884
commit 669e43d7af
1 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,7 @@ import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.logging.Logger;
import java.util.logging.Level;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
@ -71,6 +72,7 @@ public class SolrDispatchFilter implements Filter
}
catch( Throwable t ) {
// catch this so our filter still works
log.log(Level.SEVERE, "Could not start SOLR. Check solr/home property", t);
SolrConfig.severeErrors.add( t );
SolrCore.log( t );
}