Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 85799 invoked from network); 12 Dec 2001 21:55:14 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 12 Dec 2001 21:55:14 -0000 Received: (qmail 17204 invoked by uid 97); 12 Dec 2001 21:55:03 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 17173 invoked by uid 97); 12 Dec 2001 21:54:59 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 17140 invoked by uid 97); 12 Dec 2001 21:54:58 -0000 Date: 12 Dec 2001 21:54:51 -0000 Message-ID: <20011212215451.64325.qmail@icarus.apache.org> From: costin@apache.org To: jakarta-tomcat-connectors-cvs@apache.org Subject: cvs commit: jakarta-tomcat-connectors/jk/native2/common jk_logger_file.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N costin 01/12/12 13:54:51 Modified: jk/native2/common jk_logger_file.c Log: Few changes to make it consistent with the apache ap_log. Revision Changes Path 1.6 +7 -4 jakarta-tomcat-connectors/jk/native2/common/jk_logger_file.c Index: jk_logger_file.c =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_logger_file.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- jk_logger_file.c 2001/12/06 22:59:52 1.5 +++ jk_logger_file.c 2001/12/12 21:54:51 1.6 @@ -59,7 +59,7 @@ * Description: Utility functions (mainly configuration) * * Author: Gal Shachor * * Author: Henri Gomez * - * Version: $Revision: 1.5 $ * + * Version: $Revision: 1.6 $ * ***************************************************************************/ #include "jk_env.h" @@ -221,7 +221,8 @@ #ifdef WIN32 set_time_str(buf, HUGE_BUFFER_SIZE); used = strlen(buf); - used += _snprintf(&buf[used], HUGE_BUFFER_SIZE, " [%s (%d)]: ", f, line); + if( level >= JK_LOG_DEBUG_LEVEL ) + used += _snprintf(&buf[used], HUGE_BUFFER_SIZE, " [%s (%d)]: ", f, line); #elif defined(NETWARE) /* until we get a snprintf function */ buf = (char *) malloc(HUGE_BUFFER_SIZE); if (NULL == buf) @@ -229,11 +230,13 @@ jk_logger_file_setTimeStr(buf, HUGE_BUFFER_SIZE); used = strlen(buf); - used += sprintf(&buf[used], " [%s (%d)]: ", f, line); + if( level >= JK_LOG_DEBUG_LEVEL ) + used += sprintf(&buf[used], " [%s (%d)]: ", f, line); #else jk_logger_file_setTimeStr(buf, HUGE_BUFFER_SIZE); used = strlen(buf); - used += snprintf(&buf[used], HUGE_BUFFER_SIZE, " [%s (%d)]: ", f, line); + if( level >= JK_LOG_DEBUG_LEVEL ) + used += snprintf(&buf[used], HUGE_BUFFER_SIZE, " [%s (%d)]: ", f, line); #endif if(used < 0) { return 0; /* [V] not sure what to return... */ -- To unsubscribe, e-mail: For additional commands, e-mail: