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/java/org/apache/cocoon/servlet CocoonServlet.java
Date Wed, 09 Jan 2002 08:16:28 GMT
cziegeler    02/01/09 00:16:28

  Modified:    src/java/org/apache/cocoon/servlet CocoonServlet.java
  Log:
  Not initialized logger was used. Applied patch.
  Submitted by: Ihor Strutynskyj [ihor42@hotmail.com]
  
  Revision  Changes    Path
  1.2       +6 -6      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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CocoonServlet.java	3 Jan 2002 12:31:20 -0000	1.1
  +++ CocoonServlet.java	9 Jan 2002 08:16:28 -0000	1.2
  @@ -66,7 +66,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.1 $ $Date: 2002/01/03 12:31:20 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/01/09 08:16:28 $
    */
   public class CocoonServlet extends HttpServlet {
   
  @@ -563,8 +563,8 @@
           if (this.servletContextPath == null) {
               File logSCDir = new File(this.workDir, "log");
               logSCDir.mkdirs();
  -            if (log.isWarnEnabled()) {
  -                this.log.warn("Setting servlet-context for LogKit to " + logSCDir);
  +            if (logger.isWarnEnabled()) {
  +                logger.warn("Setting servlet-context for LogKit to " + logSCDir);
               }
               subcontext.put("context-root", logSCDir.toString());
           } else {
  @@ -819,7 +819,7 @@
               }
   
               res.sendError(res.SC_NOT_FOUND);
  -            
  +
               SimpleNotifyingBean n = new SimpleNotifyingBean(this);
               n.setType("resource-not-found");
               n.setTitle("Resource not found");
  @@ -833,7 +833,7 @@
               // send the notification but don't include it in the output stream
               // as the status SC_NOT_FOUND is enough
               res.setContentType(Notifier.notify(n, (OutputStream)null));
  -            
  +
           } catch (ConnectionResetException cre) {
               if (log.isWarnEnabled()) {
                   log.warn("The connection was reset", cre);
  @@ -861,7 +861,7 @@
               HashMap extraDescriptions = new HashMap(2);
               extraDescriptions.put("request-uri", request.getRequestURI());
               extraDescriptions.put("path-info", uri);
  -            
  +
               Notifying n=new DefaultNotifyingBuilder().build(
                this, e, "fatal","Internal server error","Cocoon servlet",null,null,extraDescriptions);
   
  
  
  

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