Explorar o código

improve log message

Shinsuke Sugaya %!s(int64=2) %!d(string=hai) anos
pai
achega
cee952cb06
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/main/java/org/codelibs/fess/indexer/IndexUpdater.java

+ 2 - 2
src/main/java/org/codelibs/fess/indexer/IndexUpdater.java

@@ -373,8 +373,8 @@ public class IndexUpdater extends Thread {
                     final long processingTime = System.currentTimeMillis() - startTime;
                     final long processingTime = System.currentTimeMillis() - startTime;
                     docList.addProcessingTime(processingTime);
                     docList.addProcessingTime(processingTime);
                     if (logger.isDebugEnabled()) {
                     if (logger.isDebugEnabled()) {
-                        logger.debug("Added the document({}, {}ms). The number of a document cache is {}.",
-                                MemoryUtil.byteCountToDisplaySize(contentSize), processingTime, docList.size());
+                        logger.debug("Added the document({}, {}ms). The number of a document cache is {} (size: {}).",
+                                MemoryUtil.byteCountToDisplaySize(contentSize), processingTime, docList.size(), docList.getContentSize());
                     }
                     }
 
 
                     if (docList.getContentSize() >= maxDocumentRequestSize) {
                     if (docList.getContentSize() >= maxDocumentRequestSize) {