NIHVIVO-793 put INFO level messages in the log when the Index rebuild starts and when it completes.

This commit is contained in:
jeb228 2010-07-13 20:36:19 +00:00
parent 8ad5417253
commit 4c6036bcb1

View file

@ -153,7 +153,7 @@ public class IndexBuilder {
protected void indexRebuild() throws IndexingException { protected void indexRebuild() throws IndexingException {
setReindexRequested(false); setReindexRequested(false);
log.debug("performing indexRebuild()"); log.info("Rebuild of search index is starting.");
Iterator<ObjectSourceIface> sources = sourceList.iterator(); Iterator<ObjectSourceIface> sources = sourceList.iterator();
List listOfIterators = new LinkedList(); List listOfIterators = new LinkedList();
@ -174,7 +174,7 @@ public class IndexBuilder {
if( listOfIterators.size() == 0){ log.debug("Warning: no ObjectSources found.");} if( listOfIterators.size() == 0){ log.debug("Warning: no ObjectSources found.");}
doBuild( listOfIterators, Collections.EMPTY_LIST, true, NEW_DOCS ); doBuild( listOfIterators, Collections.EMPTY_LIST, true, NEW_DOCS );
log.debug(this.getClass().getName() + ".doFullRebuildIndex() Done \n"); log.info("Rebuild of search index is complete.");
} }
protected void updatedIndex() throws IndexingException{ protected void updatedIndex() throws IndexingException{