]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
sets the logger on the treebuilder when getting the content handler
authorKeiron Liddle <keiron@apache.org>
Wed, 22 Aug 2001 08:29:17 +0000 (08:29 +0000)
committerKeiron Liddle <keiron@apache.org>
Wed, 22 Aug 2001 08:29:17 +0000 (08:29 +0000)
thanks to Michel Lehon for spotting this

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194439 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/apps/Driver.java

index e8c9003ac8fadaece0dc0128e28c72e203d10489..88967f79be9e161861352c99fb90ff6871baa802 100644 (file)
@@ -204,7 +204,6 @@ public class Driver implements Loggable {
 
     public void setLogger(Logger logger) {
         log = logger;
-        _treeBuilder.setLogger(log);
     }
 
     private Logger getLogger() {
@@ -440,6 +439,7 @@ public class Driver implements Loggable {
     public ContentHandler getContentHandler() {
         StreamRenderer streamRenderer = new StreamRenderer(_stream, _renderer);
         streamRenderer.setLogger(getLogger());
+        _treeBuilder.setLogger(getLogger());
         _treeBuilder.setStreamRenderer(streamRenderer);
 
         return _treeBuilder;