tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/native2/common jk_logger_win32.c
Date Fri, 31 May 2002 17:06:02 GMT
nacho       2002/05/31 10:06:02

  Modified:    jk/native2/common jk_logger_win32.c
  Log:
  * Oops typo!
  
  Revision  Changes    Path
  1.4       +3 -7      jakarta-tomcat-connectors/jk/native2/common/jk_logger_win32.c
  
  Index: jk_logger_win32.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_logger_win32.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- jk_logger_win32.c	29 May 2002 18:25:10 -0000	1.3
  +++ jk_logger_win32.c	31 May 2002 17:06:02 -0000	1.4
  @@ -137,7 +137,6 @@
                                        const char *fmt,
                                        va_list args)
   {
  -    /* XXX map jk level to apache level */
       int rc;
       if(l->level <= level) {
           char buf[HUGE_BUFFER_SIZE];
  @@ -159,12 +158,9 @@
           }
       
   
  -        rc = vsnprintf(buf, HUGE_BUFFER_SIZE, fmt, args);
  -        rc = strlen( buf );
  -        /* Remove trailing \n. XXX need to change the log() to not include \n */
  -        if( buf[rc-1] == '\n' )
  -            buf[rc-1]='\0';
  -        jk2_logger_win32_log(env, l, level, buf);
  +        rc = _vsnprintf(buf + used, HUGE_BUFFER_SIZE - used, fmt, args);
  +
  +        l->log(env, l, level, buf);
       }
       return rc ;
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message