producerContent debugging / pageCount inserted
authorrk <rk>
Sun, 17 Feb 2002 22:17:29 +0000 (22:17 +0000)
committerrk <rk>
Sun, 17 Feb 2002 22:17:29 +0000 (22:17 +0000)
source/mir/entity/EntityList.java
source/mircoders/producer/ProducerContent.java

index 1df76c1..4b5a4d9 100755 (executable)
@@ -204,32 +204,21 @@ public class EntityList implements TemplateListModel {
 
   // Freemarker TemplateListModel methods
 
-  public TemplateModel get(int i){
-    theLog.printDebugInfo("EntityList: get " +i );
-    return elementAt(i);
-  }
-  public boolean isRewound() {
-    theLog.printDebugInfo("EntityList: isrewound");
-    return (freemarkerListPointer==-1) ? true : false;
-  }
-  public void rewind() {
-    theLog.printDebugInfo("EntityList: rewind");
-    freemarkerListPointer=-1; }
+  public TemplateModel get(int i) { return elementAt(i); }
+  public boolean isRewound() { return (freemarkerListPointer==-1) ? true : false; }
+  public void rewind() { freemarkerListPointer=-1; }
 
   public TemplateModel next() {
-    theLog.printDebugInfo("EntityList: next");
     if (hasNext()) {
       freemarkerListPointer++;return get(freemarkerListPointer); }
     else return null;
   }
 
   public boolean hasNext() {
-    theLog.printDebugInfo("EntityList: hasnext");
     return theEntityArrayList.size()>0 && freemarkerListPointer+2<=theEntityArrayList.size();
   }
 
   public boolean isEmpty() {
-   theLog.printDebugInfo("EntityList: isempty");
     if (theEntityArrayList!=null)
       return theEntityArrayList.size()<1 ;
     else return false;
index 8e8ace1..fd8548c 100755 (executable)
@@ -119,7 +119,7 @@ public class ProducerContent extends Producer {
     }
     // timing and message to browser
     logHTML(htmlout, "Producer.Content finished producing " +
-            (System.currentTimeMillis() - startTime) + " ms. ("+ pageCount+")");
+            (System.currentTimeMillis() - startTime) + " ms. ("+ pageCount+" Pages)");
 
     /** @todo here we should have a link back to admin logged */
     /** @todo why no syncing here? */