mirror of https://github.com/apache/lucene.git
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:
parent
80aa3bc884
commit
669e43d7af
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue