tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/native2/server/apache2 jk_logger_apache2.c
Date Fri, 07 Dec 2001 23:07:24 GMT
costin      01/12/07 15:07:24

  Modified:    jk/native2/server/apache2 jk_logger_apache2.c
  Log:
  Better error level translation.
  
  Revision  Changes    Path
  1.5       +5 -3      jakarta-tomcat-connectors/jk/native2/server/apache2/jk_logger_apache2.c
  
  Index: jk_logger_apache2.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/server/apache2/jk_logger_apache2.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- jk_logger_apache2.c	2001/12/06 22:50:25	1.4
  +++ jk_logger_apache2.c	2001/12/07 23:07:24	1.5
  @@ -153,10 +153,12 @@
       if( buf[rc-1] == '\n' )
           buf[rc-1]='\0';
       
  -    if( level >= JK_LOG_ERROR_LEVEL ) {
  -        ap_log_error( file, line, APLOG_EMERG | APLOG_NOERRNO, 0, s, buf);
  -    } else {
  +    if( level == JK_LOG_DEBUG_LEVEL ) {
           ap_log_error( file, line, APLOG_DEBUG | APLOG_NOERRNO, 0, s, buf);
  +    } else if( level == JK_LOG_INFO_LEVEL ) {
  +        ap_log_error( file, line, APLOG_WARNING | APLOG_NOERRNO, 0, s, buf);
  +    } else {
  +        ap_log_error( file, line, APLOG_ERR | APLOG_NOERRNO, 0, s, 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