lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r1341526 - in /lucene/dev/trunk/solr: core/src/test/org/apache/solr/cloud/BasicDistributedZkTest.java test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java
Date Tue, 22 May 2012 15:25:04 GMT
Author: yonik
Date: Tue May 22 15:25:04 2012
New Revision: 1341526

URL: http://svn.apache.org/viewvc?rev=1341526&view=rev
Log:
tests: turn up logging

Modified:
    lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/BasicDistributedZkTest.java
    lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java

Modified: lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/BasicDistributedZkTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/BasicDistributedZkTest.java?rev=1341526&r1=1341525&r2=1341526&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/BasicDistributedZkTest.java
(original)
+++ lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/BasicDistributedZkTest.java
Tue May 22 15:25:04 2012
@@ -123,6 +123,8 @@ public class BasicDistributedZkTest exte
   
   @Override
   public void doTest() throws Exception {
+    setLoggingLevel(null);
+
     del("*:*");
     indexr(id,1, i1, 100, tlong, 100,t1,"now is the time for all good men"
             ,"foo_f", 1.414f, "foo_b", "true", "foo_d", 1.414d);

Modified: lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java?rev=1341526&r1=1341525&r2=1341526&view=diff
==============================================================================
--- lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java (original)
+++ lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java Tue
May 22 15:25:04 2012
@@ -122,6 +122,11 @@ public abstract class SolrTestCaseJ4 ext
     }
   }
 
+  public static void setLoggingLevel(Level level) {
+    java.util.logging.Logger logger = java.util.logging.Logger.getLogger("");
+    logger.setLevel(level);
+  }
+
 
   /** Call initCore in @BeforeClass to instantiate a solr core in your test class.
    * deleteCore will be called for you via SolrTestCaseJ4 @AfterClass */



Mime
View raw message