You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by pb...@apache.org on 2004/03/06 06:56:58 UTC
cvs commit: xml-fop/src/java/org/apache/fop/xml FoXmlSerialHandler.java
pbwest 2004/03/05 21:56:58
Modified: src/java/org/apache/fop/xml Tag: FOP_0-20-0_Alt-Design
FoXmlSerialHandler.java
Log:
Adjusted for Configuration instance, and use of java.util.logging
Revision Changes Path
No revision
No revision
1.1.2.7 +12 -7 xml-fop/src/java/org/apache/fop/xml/Attic/FoXmlSerialHandler.java
Index: FoXmlSerialHandler.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/xml/Attic/FoXmlSerialHandler.java,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -u -r1.1.2.6 -r1.1.2.7
--- FoXmlSerialHandler.java 19 Feb 2004 03:11:56 -0000 1.1.2.6
+++ FoXmlSerialHandler.java 6 Mar 2004 05:56:58 -0000 1.1.2.7
@@ -20,6 +20,7 @@
package org.apache.fop.xml;
import java.util.NoSuchElementException;
+import java.util.logging.Level;
import org.xml.sax.Attributes;
import org.xml.sax.InputSource;
@@ -27,9 +28,8 @@
import org.xml.sax.helpers.AttributesImpl;
import org.xml.sax.helpers.DefaultHandler;
-import org.apache.fop.apps.Driver;
import org.apache.fop.apps.FOPException;
-import org.apache.fop.configuration.Configuration;
+import org.apache.fop.apps.Fop;
import org.apache.fop.fo.FObjectNames;
import org.apache.fop.xml.Namespaces;
@@ -68,7 +68,10 @@
this.source = source;
namespaces = events.getNamespaces();
parser.setContentHandler(this);
- errorDump = Configuration.getBooleanValue("debugMode").booleanValue();
+ Level level = Fop.logger.getLevel();
+ if (level.intValue() <= Level.FINE.intValue()) {
+ errorDump = true;
+ }
}
public void setFoThread(Thread foThread) {
@@ -83,7 +86,9 @@
try {
parser.parse(source);
} catch (Exception e) {
- if (errorDump) Driver.dumpError(e);
+ if (errorDump) {
+ e.printStackTrace();
+ }
if (foThread != null) {
try {
foThread.interrupt();
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org