tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5 MapperListener.java
Date Fri, 02 Jan 2004 01:23:28 GMT
billbarker    2004/01/01 17:23:28

  Modified:    catalina/src/share/org/apache/coyote/tomcat5
                        MapperListener.java
  Log:
  Fix error-condition logging statements (printStackTrace is just evil :).
  
  Revision  Changes    Path
  1.14      +2 -2      jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/MapperListener.java
  
  Index: MapperListener.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/MapperListener.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- MapperListener.java	23 Dec 2003 11:09:31 -0000	1.13
  +++ MapperListener.java	2 Jan 2004 01:23:28 -0000	1.14
  @@ -235,7 +235,7 @@
                       try {
                           registerHost(objectName);
                       } catch (Exception e) {
  -                        e.printStackTrace();  
  +                        log.warn("Error registering Host " + objectName, e);  
                       }
                   }
       
  @@ -261,7 +261,7 @@
                       try {
                           unregisterHost(objectName);
                       } catch (Exception e) {
  -                        e.printStackTrace();  
  +                        log.warn("Error unregistering Host " + objectName,e);  
                       }
                   }
    
  
  
  

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


Mime
View raw message