From 28920ff55494e247e4296699e85511e581895f03 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Tue, 13 Nov 2007 12:45:15 +0000 Subject: Log element list length for convenience. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594517 13f79535-47bb-0310-9956-ffa450edef68 --- test/java/org/apache/fop/logging/LoggingElementListObserver.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/java') 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("<>"); return; -- cgit v1.2.3