tests: use logging instead of stdout so output interleaves properly

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@819420 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2009-09-27 22:43:50 +00:00
parent 9989774d33
commit bf60014ce4
1 changed files with 2 additions and 3 deletions

View File

@ -237,7 +237,7 @@ public class TestDistributedSearch extends AbstractSolrTestCase {
compareResponses(rsp, controlRsp); compareResponses(rsp, controlRsp);
if (stress>0) { if (stress>0) {
System.out.println("starting stress..."); log.info("starting stress...");
Thread[] threads = new Thread[nThreads]; Thread[] threads = new Thread[nThreads];
for (int i=0; i<threads.length; i++) { for (int i=0; i<threads.length; i++) {
threads[i] = new Thread() { threads[i] = new Thread() {
@ -488,8 +488,7 @@ public class TestDistributedSearch extends AbstractSolrTestCase {
String cmp; String cmp;
cmp = compare(a.getResponse(), b.getResponse(), flags, handle); cmp = compare(a.getResponse(), b.getResponse(), flags, handle);
if (cmp != null) { if (cmp != null) {
System.out.println(a); log.info("Mismatched responses:\n"+a+"\n"+b);
System.out.println(b);
TestCase.fail(cmp); TestCase.fail(cmp);
} }
} }