Author: andre
Date: 2009-06-03 19:38:28 +0200 (Wed, 03 Jun 2009)
New Revision: 35643

Modified:
   mmbase/trunk/contributions/lucene/src/org/mmbase/module/lucene/Indexer.java
Log:
debug

Modified: 
mmbase/trunk/contributions/lucene/src/org/mmbase/module/lucene/Indexer.java
===================================================================
--- mmbase/trunk/contributions/lucene/src/org/mmbase/module/lucene/Indexer.java 
2009-06-03 17:31:08 UTC (rev 35642)
+++ mmbase/trunk/contributions/lucene/src/org/mmbase/module/lucene/Indexer.java 
2009-06-03 17:38:28 UTC (rev 35643)
@@ -484,10 +484,13 @@
                     if (errorCountBefore == errorCount) {
                         // first clean up, to remove possible mess
                         clear(false);
+                        
                         Directory.copy(fullIndex, getDirectory(), true);
                         Date lastFullIndex = setLastFullIndex(startTime);
-                        log.info("Full index finished at " + lastFullIndex + 
". Copied " + fullIndex + " to " + 
-                                getDirectory() + " Total nr documents in index 
'" + getName() + "': " + writer.maxDoc());
+                        log.info("Full index finished at " + lastFullIndex );
+                        if (log.isDebugEnabled()) log.debug("Copied " + 
fullIndex);
+                        if (log.isDebugEnabled()) log.debug("    To " + 
getDirectory());
+                        log.info("Total nr documents in index '" + getName() + 
"': " + writer.maxDoc());
                     } else if (Thread.currentThread().isInterrupted()) {
                         addError("Interrupted, will not update the index");
                     } else {
@@ -590,6 +593,7 @@
     void clear(boolean copy) {
         try {
             Directory dir = copy ? getDirectoryForFullIndex(): getDirectory();
+            log.debug("dir: " + dir);
             for (String file : dir.list()) {
                 if (file != null) {
                     try {

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to