From 669e43d7af73a055722a344d6c8ebdc3888299ad Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Mon, 11 Jun 2007 18:58:45 +0000 Subject: [PATCH] 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 --- src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java b/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java index dd7abf20b38..665cab00971 100644 --- a/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java +++ b/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java @@ -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 ); }