[logback-dev] svn commit: r1003 - logback/trunk/logback-core/src/main/java/ch/qos/logback/core/joran/event

noreply.ceki at qos.ch noreply.ceki at qos.ch
Sat Nov 25 14:47:50 CET 2006


Author: ceki
Date: Sat Nov 25 14:47:50 2006
New Revision: 1003

Modified:
   logback/trunk/logback-core/src/main/java/ch/qos/logback/core/joran/event/SaxEventRecorder.java

Log:

Reduce the amount of noise when reporting errors

Modified: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/joran/event/SaxEventRecorder.java
==============================================================================
--- logback/trunk/logback-core/src/main/java/ch/qos/logback/core/joran/event/SaxEventRecorder.java	(original)
+++ logback/trunk/logback-core/src/main/java/ch/qos/logback/core/joran/event/SaxEventRecorder.java	Sat Nov 25 14:47:50 2006
@@ -148,20 +148,17 @@
   }
 
   public void error(SAXParseException spe) throws SAXException {
-    addError("Parsing error", spe);
-    addError("Parsing problem on line " + spe.getLineNumber() + " and column "
+    addError("Parsing error on line " + spe.getLineNumber() + " and column "
         + spe.getColumnNumber(), spe);
   }
 
   public void fatalError(SAXParseException spe) throws SAXException {
-    addError("Parsing fatal error", spe);
-    addError("Parsing problem on line " + spe.getLineNumber() + " and column "
+    addError("Parsing fatal error on line " + spe.getLineNumber() + " and column "
         + spe.getColumnNumber(), spe);
   }
 
   public void warning(SAXParseException spe) throws SAXException {
-    addWarn("Parsing warning", spe);
-    addWarn("Parsing problem on line " + spe.getLineNumber() + " and column "
+    addWarn("Parsing warning on line " + spe.getLineNumber() + " and column "
         + spe.getColumnNumber(), spe);
   }
 



More information about the logback-dev mailing list