mturk       2004/11/29 08:22:08

  Modified:    jk/native/common jk_util.c
  Log:
  Log [pid:tid] for both debug and trace log levels.
  
  Revision  Changes    Path
  1.42      +4 -3      jakarta-tomcat-connectors/jk/native/common/jk_util.c
  
  Index: jk_util.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_util.c,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- jk_util.c 29 Nov 2004 16:10:51 -0000      1.41
  +++ jk_util.c 29 Nov 2004 16:22:08 -0000      1.42
  @@ -273,8 +273,9 @@
   #endif
           set_time_str(buf, HUGE_BUFFER_SIZE);
           used = strlen(buf);
  -
  -        if (l->level == JK_LOG_TRACE_LEVEL) {
  +        
  +        /* Log [pid:threadid] for debug and trace levels */
  +        if (l->level < JK_LOG_INFO_LEVEL) {
   #ifdef USE_SPRINTF              /* until we get a snprintf function */       
 
               used += sprintf(&buf[used], "[%d:%d] ", getpid(),
                               jk_gettid());
  
  
  

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

Reply via email to