commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/impl TagScript.java
Date Wed, 30 Oct 2002 19:29:15 GMT
jstrachan    2002/10/30 11:29:15

  Modified:    jelly/src/java/org/apache/commons/jelly/impl TagScript.java
  Log:
  Added some extra tracing we can use if exceptions are being caught and eaten by some higher
level tool
  
  Revision  Changes    Path
  1.25      +11 -9     jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/impl/TagScript.java
  
  Index: TagScript.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/impl/TagScript.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- TagScript.java	30 Oct 2002 19:16:23 -0000	1.24
  +++ TagScript.java	30 Oct 2002 19:29:15 -0000	1.25
  @@ -563,8 +563,9 @@
        * such as adding line number information etc.
        */
       protected void handleException(JellyException e) throws Exception {
  -        //e.printStackTrace();
  -        // log.error( "Caught exception: " + e, e );
  +    	if (log.isTraceEnabled()) {
  +        	log.trace( "Caught exception: " + e, e );
  +    	}
   
           if (e.getLineNumber() == -1) {
               e.setColumnNumber(columnNumber);
  @@ -585,8 +586,9 @@
        * while adding line number information etc.
        */
       protected void handleException(Exception e) throws Exception {
  -        //e.printStackTrace();
  -        // log.error( "Caught exception: " + e, e );
  +    	if (log.isTraceEnabled()) {
  +        	log.trace( "Caught exception: " + e, e );
  +    	}
   
           if ( e instanceof JellyException ) {
               e.fillInStackTrace();
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message