You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by pi...@apache.org on 2001/08/09 22:05:36 UTC

cvs commit: jakarta-tomcat-connectors/webapp/apache-1.3 mod_webapp.c

pier        01/08/09 13:05:36

  Modified:    webapp/apache-1.3 mod_webapp.c
  Log:
  Provide some more informations if mod_webapp was compiled with the
  DEBUG flag set.
  
  Revision  Changes    Path
  1.23      +9 -1      jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c
  
  Index: mod_webapp.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- mod_webapp.c	2001/08/04 18:25:57	1.22
  +++ mod_webapp.c	2001/08/09 20:05:36	1.23
  @@ -57,7 +57,7 @@
   
   /**
    * @author  Pier Fumagalli <ma...@eng.sun.com>
  - * @version $Id: mod_webapp.c,v 1.22 2001/08/04 18:25:57 pier Exp $
  + * @version $Id: mod_webapp.c,v 1.23 2001/08/09 20:05:36 pier Exp $
    */
   
   #include <httpd.h>
  @@ -262,9 +262,17 @@
   void wa_log(const char *f, const int l, const char *fmt, ...) {
       va_list ap;
       char buf[1024];
  +#ifdef DEBUG
  +    char tmp[1024];
  +#endif
   
       va_start(ap,fmt);
  +#ifdef DEBUG
  +    apr_vsnprintf(tmp,1024,fmt,ap);
  +    apr_snprintf(buf,1024,"[%s:%d] %s",f,l,tmp);
  +#else
       apr_vsnprintf(buf,1024,fmt,ap);
  +#endif
       va_end(ap);
   
       ap_log_error(f,l,APLOG_NOERRNO|APLOG_ERR,server,"%s",buf);