cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/servlet CocoonServlet.java
Date Thu, 06 Jun 2002 20:49:00 GMT
nicolaken    2002/06/06 13:49:00

  Modified:    src/java/org/apache/cocoon/servlet Tag: cocoon_2_0_3_branch
                        CocoonServlet.java
  Log:
  (Bug#: 9538 ) Now if the Connection is reset, the stacktrace
  is logged only if debug is enabled; warn level logs only a statement.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.19.2.4  +6 -3      xml-cocoon2/src/java/org/apache/cocoon/servlet/CocoonServlet.java
  
  Index: CocoonServlet.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/servlet/CocoonServlet.java,v
  retrieving revision 1.19.2.3
  retrieving revision 1.19.2.4
  diff -u -r1.19.2.3 -r1.19.2.4
  --- CocoonServlet.java	6 Jun 2002 08:47:40 -0000	1.19.2.3
  +++ CocoonServlet.java	6 Jun 2002 20:49:00 -0000	1.19.2.4
  @@ -117,7 +117,7 @@
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
    * @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
    * @author <a href="mailto:leo.sutic@inspireinfrastructure.com">Leo Sutic</a>
  - * @version CVS $Id: CocoonServlet.java,v 1.19.2.3 2002/06/06 08:47:40 nicolaken Exp $
  + * @version CVS $Id: CocoonServlet.java,v 1.19.2.4 2002/06/06 20:49:00 nicolaken Exp $
    */
   public class CocoonServlet extends HttpServlet {
   
  @@ -1093,8 +1093,11 @@
                     }
   
               } catch (ConnectionResetException cre) {
  -                if (log.isWarnEnabled()) {
  -                    log.warn("The connection was reset", cre);
  +                if (log.isDebugEnabled()) {
  +                    log.debug("The connection was reset", cre);
  +                }
  +                else if (log.isWarnEnabled()) {
  +                    log.warn("The connection was reset.");
                   }
   
               } catch (Exception e) {
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message