aboutsummaryrefslogtreecommitdiffstats
path: root/test/java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2007-11-13 12:45:15 +0000
committerJeremias Maerki <jeremias@apache.org>2007-11-13 12:45:15 +0000
commit28920ff55494e247e4296699e85511e581895f03 (patch)
treee17a6588ef14584614c7d39c740fd21d58090cfb /test/java
parent99b18323d1cf85c0de7394e9fb1eddf7a2211913 (diff)
downloadxmlgraphics-fop-28920ff55494e247e4296699e85511e581895f03.tar.gz
xmlgraphics-fop-28920ff55494e247e4296699e85511e581895f03.zip
Log element list length for convenience.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594517 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/java')
-rw-r--r--test/java/org/apache/fop/logging/LoggingElementListObserver.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/java/org/apache/fop/logging/LoggingElementListObserver.java b/test/java/org/apache/fop/logging/LoggingElementListObserver.java
index b408854c8..26c4db00e 100644
--- a/test/java/org/apache/fop/logging/LoggingElementListObserver.java
+++ b/test/java/org/apache/fop/logging/LoggingElementListObserver.java
@@ -24,6 +24,7 @@ import java.util.ListIterator;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.apache.fop.layoutmgr.ElementListUtils;
import org.apache.fop.layoutmgr.ListElement;
import org.apache.fop.layoutmgr.ElementListObserver.Observer;
@@ -44,7 +45,8 @@ public class LoggingElementListObserver implements Observer {
return;
}
log.debug(" ");
- log.debug("ElementList: category=" + category + ", id=" + id);
+ int len = (elementList != null ? ElementListUtils.calcContentLength(elementList) : 0);
+ log.debug("ElementList: category=" + category + ", id=" + id + ", len=" + len + "mpt");
if (elementList == null) {
log.debug("<<empty list>>");
return;