SOLR-906 -- chaning log levels

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@732474 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2009-01-07 20:35:25 +00:00
parent 2192dbc0d0
commit 8d0b47c905

View File

@ -82,6 +82,7 @@ public class StreamingUpdateSolrServer extends CommonsHttpSolrServer
public void run() { public void run() {
lock.lock(); lock.lock();
// info is ok since this should only happen once for each thread
log.info( "starting runner: {}" , this ); log.info( "starting runner: {}" , this );
PostMethod method = null; PostMethod method = null;
try { try {
@ -97,7 +98,7 @@ public class StreamingUpdateSolrServer extends CommonsHttpSolrServer
writer.append( "<stream>" ); // can be anything... writer.append( "<stream>" ); // can be anything...
UpdateRequest req = queue.poll( 250, TimeUnit.MILLISECONDS ); UpdateRequest req = queue.poll( 250, TimeUnit.MILLISECONDS );
while( req != null ) { while( req != null ) {
log.info( "sending: {}" , req ); log.debug( "sending: {}" , req );
req.writeXML( writer ); req.writeXML( writer );
// check for commit or optimize // check for commit or optimize