You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by yo...@apache.org on 2010/10/16 19:08:00 UTC

svn commit: r1023330 - /lucene/dev/trunk/solr/src/test/org/apache/solr/SolrTestCaseJ4.java

Author: yonik
Date: Sat Oct 16 17:07:59 2010
New Revision: 1023330

URL: http://svn.apache.org/viewvc?rev=1023330&view=rev
Log:
tests: use solr's log to skip logging expected exceptions

Modified:
    lucene/dev/trunk/solr/src/test/org/apache/solr/SolrTestCaseJ4.java

Modified: lucene/dev/trunk/solr/src/test/org/apache/solr/SolrTestCaseJ4.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/test/org/apache/solr/SolrTestCaseJ4.java?rev=1023330&r1=1023329&r2=1023330&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/test/org/apache/solr/SolrTestCaseJ4.java (original)
+++ lucene/dev/trunk/solr/src/test/org/apache/solr/SolrTestCaseJ4.java Sat Oct 16 17:07:59 2010
@@ -339,7 +339,7 @@ public abstract class SolrTestCaseJ4 ext
     } catch (XPathExpressionException e1) {
       throw new RuntimeException("XPath is invalid", e1);
     } catch (Exception e2) {
-      log.error("REQUEST FAILED: " + req.getParamString());
+      SolrException.log(log,"REQUEST FAILED: " + req.getParamString(), e2);
       throw new RuntimeException("Exception during query", e2);
     }
   }