avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anton Tagunov <atagu...@mail.cnt.ru>
Subject [PATCH] bug 19451 ConsoleLogger does not print exception.getMessage() and there may be important info there
Date Tue, 29 Apr 2003 23:50:08 GMT
19451. ConsoleLogger does not print exception.getMessage()
       and there may be important info there
http://issues.apache.org/bugzilla/show_bug.cgi?id=19451

For example when using XSLTProcessor xsl file name and line
number are packed there. So I propose to print it out too.

diff -ru src.orig/java/org/apache/avalon/framework/configuration/DefaultConfiguration.java
src/java/org/apache/avalon/framework/configuration/DefaultConfiguration.java
diff -ru src.orig/java/org/apache/avalon/framework/logger/ConsoleLogger.java src/java/org/apache/avalon/framework/logger/ConsoleLogger.java
--- src.orig/java/org/apache/avalon/framework/logger/ConsoleLogger.java 2003-02-27 19:25:02.000000000
+0300
+++ src/java/org/apache/avalon/framework/logger/ConsoleLogger.java      2003-04-29 14:43:16.000000000
+0400
@@ -127,6 +127,7 @@
 
             if( null != throwable )
             {
+                System.out.println(throwable.getMessage());
                 throwable.printStackTrace( System.out );
             }
         }
@@ -167,6 +168,7 @@
 
             if( null != throwable )
             {
+                System.out.println(throwable.getMessage());
                 throwable.printStackTrace( System.out );
             }
         }
@@ -207,6 +209,7 @@
 
             if( null != throwable )
             {
+                System.out.println(throwable.getMessage());
                 throwable.printStackTrace( System.out );
             }
         }
@@ -247,6 +250,7 @@
 
             if( null != throwable )
             {
+                System.out.println(throwable.getMessage());
                 throwable.printStackTrace( System.out );
             }
         }
@@ -287,6 +291,7 @@
 
             if( null != throwable )
             {
+                System.out.println(throwable.getMessage());
                 throwable.printStackTrace( System.out );
             }
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Mime
View raw message