You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by co...@apache.org on 2001/02/17 08:10:16 UTC

cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/modules/server Ajp12.java

costin      01/02/16 23:10:16

  Modified:    src/share/org/apache/tomcat/modules/config LogSetter.java
               src/share/org/apache/tomcat/modules/server Ajp12.java
  Log:
  Flush the logs before exit ( Ajp12 )
  Add a note in LogSetter that we should do something with the
  other logs when the server is shut down.
  
  Revision  Changes    Path
  1.7       +5 -0      jakarta-tomcat/src/share/org/apache/tomcat/modules/config/LogSetter.java
  
  Index: LogSetter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/config/LogSetter.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- LogSetter.java	2001/02/06 06:42:28	1.6
  +++ LogSetter.java	2001/02/17 07:10:15	1.7
  @@ -251,4 +251,9 @@
   	}  
   
       }
  +
  +
  +    // XXX Flush the buffers on shutdown !!!!!!
  +
  +
   }
  
  
  
  1.13      +3 -0      jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Ajp12.java
  
  Index: Ajp12.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Ajp12.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- Ajp12.java	2001/01/28 21:46:00	1.12
  +++ Ajp12.java	2001/02/17 07:10:16	1.13
  @@ -269,6 +269,9 @@
   				    }
   				}
   				req.getContextManager().stop();
  +				req.getContextManager().log("Exiting" );
  +				req.getContextManager().getLog().getLogger().
  +				    flush();
   				// same behavior as in past, because it seems
   				// that stopping everything doesn't work -
   				// need to figure