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/betwixt/src/java/org/apache/commons/betwixt/io AbstractBeanWriter.java
Date Mon, 14 Oct 2002 01:55:38 GMT
dion        2002/10/13 18:55:38

  Modified:    betwixt/src/java/org/apache/commons/betwixt/io
                        AbstractBeanWriter.java
  Log:
  Add isDebugEnabled around some debug messages
  
  Revision  Changes    Path
  1.6       +12 -8     jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/io/AbstractBeanWriter.java
  
  Index: AbstractBeanWriter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/io/AbstractBeanWriter.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- AbstractBeanWriter.java	12 Oct 2002 15:26:22 -0000	1.5
  +++ AbstractBeanWriter.java	14 Oct 2002 01:55:38 -0000	1.6
  @@ -126,12 +126,16 @@
        * @param bean write out representation of this bean
        */
       public void write(Object bean) throws IOException, SAXException, IntrospectionException
 {
  -        log.debug( "Writing bean graph..." );
  -        log.debug( bean );
  +        if (log.isDebugEnabled()) {
  +            log.debug( "Writing bean graph..." );
  +            log.debug( bean );
  +        }
           start();
           write( null, bean );
           end();
  -        log.debug( "Finished writing bean graph." );
  +        if (log.isDebugEnabled()) {
  +            log.debug( "Finished writing bean graph." );
  +        }
       }
       
       /**
  
  
  

--
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