lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r819420 - /lucene/solr/trunk/src/test/org/apache/solr/TestDistributedSearch.java
Date Sun, 27 Sep 2009 22:43:51 GMT
Author: yonik
Date: Sun Sep 27 22:43:50 2009
New Revision: 819420

URL: http://svn.apache.org/viewvc?rev=819420&view=rev
Log:
tests: use logging instead of stdout so output interleaves properly

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

Modified: lucene/solr/trunk/src/test/org/apache/solr/TestDistributedSearch.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/TestDistributedSearch.java?rev=819420&r1=819419&r2=819420&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/TestDistributedSearch.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/TestDistributedSearch.java Sun Sep 27 22:43:50
2009
@@ -237,7 +237,7 @@
     compareResponses(rsp, controlRsp);
 
     if (stress>0) {
-      System.out.println("starting stress...");
+      log.info("starting stress...");
       Thread[] threads = new Thread[nThreads];
       for (int i=0; i<threads.length; i++) {
         threads[i] = new Thread() {
@@ -488,8 +488,7 @@
     String cmp;    
     cmp = compare(a.getResponse(), b.getResponse(), flags, handle);
     if (cmp != null) {
-      System.out.println(a);
-      System.out.println(b);
+      log.info("Mismatched responses:\n"+a+"\n"+b);
       TestCase.fail(cmp);
     }
   }



Mime
View raw message