tweek the update log format to show a more reasonable message

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@828300 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2009-10-22 04:17:01 +00:00
parent ede4df7add
commit 150a47586e
1 changed files with 2 additions and 2 deletions

View File

@ -162,10 +162,10 @@ class LogUpdateProcessor extends UpdateRequestProcessor {
// if id lists were truncated, show how many more there were // if id lists were truncated, show how many more there were
if (numAdds > maxNumToLog) { if (numAdds > maxNumToLog) {
adds.add("...(" + (numAdds-adds.size()) + " more)"); adds.add("... (" + adds.size() + " added)");
} }
if (numDeletes > maxNumToLog) { if (numDeletes > maxNumToLog) {
deletes.add("...(" + (numDeletes-deletes.size()) + " more)"); deletes.add("... (" + deletes.size() + " removed)");
} }
long elapsed = rsp.getEndTime() - req.getStartTime(); long elapsed = rsp.getEndTime() - req.getStartTime();
log.info( ""+toLog + " 0 " + (elapsed) ); log.info( ""+toLog + " 0 " + (elapsed) );