mturk       2004/07/27 05:09:12

  Modified:    ajp/ajplib/test testajp.c httpd_wrap.c
  Log:
  Forgot the loglevel. Quite rude and simple, but it will fulfill the needs.
  
  Revision  Changes    Path
  1.2       +6 -0      jakarta-tomcat-connectors/ajp/ajplib/test/testajp.c
  
  Index: testajp.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/ajp/ajplib/test/testajp.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- testajp.c 27 Jul 2004 11:43:42 -0000      1.1
  +++ testajp.c 27 Jul 2004 12:09:12 -0000      1.2
  @@ -44,6 +44,12 @@
       int rv = 0;
   
       apr_app_initialize(&argc, &argv, &env);
  +
  +    /* This is done in httpd.conf using LogLevel debug directive.
  +     * We are setting this directly.
  +     */
  +    ap_default_loglevel = APLOG_DEBUG;
  +
       ap_log_error(APLOG_MARK, APLOG_INFO, 0, NULL, "Testing ajp...");
   
   
  
  
  
  1.2       +6 -1      jakarta-tomcat-connectors/ajp/ajplib/test/httpd_wrap.c
  
  Index: httpd_wrap.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/ajp/ajplib/test/httpd_wrap.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- httpd_wrap.c      27 Jul 2004 11:42:57 -0000      1.1
  +++ httpd_wrap.c      27 Jul 2004 12:09:12 -0000      1.2
  @@ -33,6 +33,8 @@
   
   #include "httpd_wrap.h"
   
  +int AP_DECLARE_DATA ap_default_loglevel = DEFAULT_LOGLEVEL;
  +
   static const char *levels[] = {
       "emerg",
       "alert",
  @@ -52,7 +54,10 @@
       FILE *stream;
       char timstr[32];
       char errstr[MAX_STRING_LEN];
  -
  +    
  +    /* Skip the loging for lower levels */
  +    if (level < 0 || level > ap_default_loglevel)
  +        return;
       if (level < APLOG_WARNING)
           stream = stderr;
       else
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to