commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/jelly/src/java/org/apache/commons/jelly/tags/core ThreadTag.java
Date Thu, 02 Sep 2004 07:14:29 GMT
dion        2004/09/02 00:14:29

  Modified:    jelly/src/java/org/apache/commons/jelly/tags/core
                        ThreadTag.java
  Log:
  Log exceptions
  
  Revision  Changes    Path
  1.11      +5 -1      jakarta-commons/jelly/src/java/org/apache/commons/jelly/tags/core/ThreadTag.java
  
  Index: ThreadTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jelly/src/java/org/apache/commons/jelly/tags/core/ThreadTag.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ThreadTag.java	24 Feb 2004 14:10:38 -0000	1.10
  +++ ThreadTag.java	2 Sep 2004 07:14:29 -0000	1.11
  @@ -23,6 +23,8 @@
   import org.apache.commons.jelly.JellyTagException;
   import org.apache.commons.jelly.TagSupport;
   import org.apache.commons.jelly.XMLOutput;
  +import org.apache.commons.logging.Log;
  +import org.apache.commons.logging.LogFactory;
   
   /** A tag that spawns the contained script in a separate thread
     *
  @@ -35,6 +37,8 @@
       private XMLOutput xmlOutput;
       /** Should we close the underlying output */
       private boolean closeOutput;
  +    /** The Log to which logging calls will be made. */
  +    private Log log = LogFactory.getLog(ThreadTag.class);
   
       public ThreadTag() {
       }
  @@ -67,7 +71,7 @@
                           }
                       }
                       catch (Exception e) {
  -                        e.printStackTrace();
  +                        if (log.isErrorEnabled()) log.error("error running thread tag",
e);
                       }
                   }
               }
  
  
  

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


Mime
View raw message