tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/native/common jk_util.c
Date Fri, 12 Nov 2004 07:52:23 GMT
mturk       2004/11/11 23:52:23

  Modified:    jk/native/common jk_util.c
  Log:
  Log PID:TID only when log level is TRACE.
  
  Revision  Changes    Path
  1.37      +4 -4      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.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- jk_util.c	12 Nov 2004 07:46:48 -0000	1.36
  +++ jk_util.c	12 Nov 2004 07:52:23 -0000	1.37
  @@ -269,17 +269,17 @@
           set_time_str(buf, HUGE_BUFFER_SIZE);
           used = strlen(buf);
   
  +        if (l->level == JK_LOG_TRACE_LEVEL) {
   #ifdef USE_SPRINTF              /* until we get a snprintf function */        
  -        if (line)
               used += sprintf(&buf[used], "[%d:%d] ", getpid(),
                               jk_gettid());
   #else
  -        if (line)
               used += snprintf(&buf[used], HUGE_BUFFER_SIZE, "[%d:%d] ",
                                getpid(), jk_gettid());
   #endif
  -        if (used < 0) {
  -            return 0;           /* [V] not sure what to return... */
  +            if (used < 0) {
  +                return 0;
  +            }
           }
           if (line) {
               strcat(buf, jk_level_werbs[level]);
  
  
  

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


Mime
View raw message