Return-Path: Delivered-To: apmail-xml-cocoon-cvs-archive@xml.apache.org Received: (qmail 82274 invoked by uid 500); 11 Oct 2001 09:10:19 -0000 Mailing-List: contact cocoon-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: cocoon-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cocoon-cvs@xml.apache.org Received: (qmail 82260 invoked by uid 500); 11 Oct 2001 09:10:19 -0000 Delivered-To: apmail-xml-cocoon2-cvs@apache.org Date: 11 Oct 2001 09:06:02 -0000 Message-ID: <20011011090602.64158.qmail@icarus.apache.org> From: cziegeler@apache.org To: xml-cocoon2-cvs@apache.org Subject: cvs commit: xml-cocoon2/src/org/apache/cocoon/servlet CocoonServlet.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 Berin Loritsch * @author Carsten Ziegeler * @author Leo Sutic - * @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