tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/core ContextManager.java
Date Thu, 27 Jul 2000 18:40:58 GMT
costin      00/07/27 11:40:58

  Modified:    src/share/org/apache/tomcat/core ContextManager.java
  Log:
  Merge from 3.2 - do not log 302 ( it's a normal event, not an error )
  
  Revision  Changes    Path
  1.104     +8 -3      jakarta-tomcat/src/share/org/apache/tomcat/core/ContextManager.java
  
  Index: ContextManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/ContextManager.java,v
  retrieving revision 1.103
  retrieving revision 1.104
  diff -u -r1.103 -r1.104
  --- ContextManager.java	2000/07/25 20:17:43	1.103
  +++ ContextManager.java	2000/07/27 18:40:57	1.104
  @@ -930,9 +930,14 @@
   	Context ctx = req.getContext();
   	if(ctx==null) ctx=getContext("");
   
  -	ctx.log( "Status code:" + code + " request:"  + req + " msg:" +
  -		 req.getAttribute("javax.servlet.error.message"));  // tuneme
  -
  +	// don't log normal cases ( redirect and need_auth ), they are not
  +	// error
  +	// XXX this log was intended to debug the status code generation.
  +	// it can be removed for all cases.
  +	if( code != 302 && code != 401 ) // tuneme
  +	    ctx.log( "Status code:" + code + " request:"  + req + " msg:" +
  +		     req.getAttribute("javax.servlet.error.message"));
  +	
   	errorPath = ctx.getErrorPage( code );
   	if( errorPath != null ) {
   	    errorServlet=getHandlerForPath( ctx, errorPath );
  
  
  

Mime
View raw message