aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java')
-rw-r--r--src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java b/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java
index 7ce12edab..6418d82e7 100644
--- a/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java
@@ -452,7 +452,9 @@ public class PageSequenceLayoutManager extends AbstractLayoutManager {
throw new IllegalArgumentException("Cannot create page: " + fopex.getMessage());
}
- log.debug("[" + curPV.getPageNumberString() + (bIsBlank ? "*" : "") + "]");
+ if (log.isDebugEnabled()) {
+ log.debug("[" + curPV.getPageNumberString() + (bIsBlank ? "*" : "") + "]");
+ }
return curPV;
}
@@ -484,8 +486,10 @@ public class PageSequenceLayoutManager extends AbstractLayoutManager {
areaTreeHandler.tryIDResolution(curPV);
// Queue for ID resolution and rendering
areaTreeHandler.getAreaTreeModel().addPage(curPV);
- log.debug("page finished: " + curPV.getPageNumberString()
- + ", current num: " + currentPageNum);
+ if (log.isDebugEnabled()) {
+ log.debug("page finished: " + curPV.getPageNumberString()
+ + ", current num: " + currentPageNum);
+ }
curPV = null;
}