directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1525773 - /directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/ParserUtils.java
Date Tue, 24 Sep 2013 04:47:12 GMT
Author: kayyagari
Date: Tue Sep 24 04:47:12 2013
New Revision: 1525773

URL: http://svn.apache.org/r1525773
Log:
replaced a stacktrace printing line with a log statement 

Modified:
    directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/ParserUtils.java

Modified: directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/ParserUtils.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/ParserUtils.java?rev=1525773&r1=1525772&r2=1525773&view=diff
==============================================================================
--- directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/ParserUtils.java
(original)
+++ directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/ParserUtils.java
Tue Sep 24 04:47:12 2013
@@ -48,6 +48,8 @@ import org.dom4j.Namespace;
 import org.dom4j.QName;
 import org.dom4j.io.DocumentResult;
 import org.dom4j.io.DocumentSource;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 import org.xmlpull.v1.XmlPullParser;
 import org.xmlpull.v1.XmlPullParserException;
 
@@ -82,7 +84,9 @@ public final class ParserUtils
 
     /** The XSI namespace */
     public static final Namespace XSI_NAMESPACE = new Namespace( XSI, XML_SCHEMA_INSTANCE_URI
);
-
+    
+    /** A logger for this class */
+    private static final Logger LOG = LoggerFactory.getLogger( ParserUtils.class );
 
     /**
      * Returns the value of the attribute 'type' of the "XMLSchema-instance' namespace if
it exists
@@ -307,7 +311,7 @@ public final class ParserUtils
         }
         catch ( TransformerConfigurationException e1 )
         {
-            e1.printStackTrace();
+            LOG.warn( "Failed to create the XSLT transformer", e1 );
             // return original document
             return document;
         }



Mime
View raw message