From: rk Date: Sun, 17 Feb 2002 22:17:29 +0000 (+0000) Subject: producerContent debugging / pageCount inserted X-Git-Url: http://erislabs.net/gitweb/?p=mir.git;a=commitdiff_plain;h=fb14b5b91d56b0319d376bf6fd7c2569458b4a7d producerContent debugging / pageCount inserted --- diff --git a/source/mir/entity/EntityList.java b/source/mir/entity/EntityList.java index 1df76c1d..4b5a4d95 100755 --- a/source/mir/entity/EntityList.java +++ b/source/mir/entity/EntityList.java @@ -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; diff --git a/source/mircoders/producer/ProducerContent.java b/source/mircoders/producer/ProducerContent.java index 8e8ace16..fd8548c7 100755 --- a/source/mircoders/producer/ProducerContent.java +++ b/source/mircoders/producer/ProducerContent.java @@ -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? */