cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/servlet CocoonServlet.java
Date Thu, 11 Oct 2001 09:06:02 GMT
cziegeler    01/10/11 02:06:02

  Modified:    src/org/apache/cocoon/servlet CocoonServlet.java
  Log:
  When Cocoon is reloaded, the logkit configuration is also reloading. This enables changing
the logkit settings during runtime
  
  Revision  Changes    Path
  1.43      +4 -1      xml-cocoon2/src/org/apache/cocoon/servlet/CocoonServlet.java
  
  Index: CocoonServlet.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/servlet/CocoonServlet.java,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- CocoonServlet.java	2001/10/11 07:28:23	1.42
  +++ CocoonServlet.java	2001/10/11 09:06:02	1.43
  @@ -58,7 +58,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 $Revision: 1.42 $ $Date: 2001/10/11 07:28:23 $
  + * @version CVS $Revision: 1.43 $ $Date: 2001/10/11 09:06:02 $
    */
   
   public class CocoonServlet extends HttpServlet {
  @@ -837,15 +837,18 @@
           if (this.cocoon != null && this.allowReload == true) {
               if (this.cocoon.modifiedSince(this.creationTime)) {
                   log.info("Configuration changed reload attempt");
  +                this.initLogger();
                   this.createCocoon();
                   return this.cocoon;
               } else if ((pathInfo == null) && (reloadParam != null)) {
                   log.info("Forced reload attempt");
  +                this.initLogger();
                   this.createCocoon();
                   return this.cocoon;
               }
           } else if ((pathInfo == null) && (this.allowReload == true) &&
(reloadParam != null)) {
               log.info("Invalid configurations reload");
  +            this.initLogger();
               this.createCocoon();
               return this.cocoon;
           }
  
  
  

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