Author: mturk
Date: Sat Aug 19 03:37:11 2006
New Revision: 432829
URL: http://svn.apache.org/viewvc?rev=432829&view=rev
Log:
Revert the logging for PID:TID. It's part of mt code
not a logger.
Modified:
tomcat/connectors/trunk/jk/native/common/jk_util.c
Modified: tomcat/connectors/trunk/jk/native/common/jk_util.c
URL:
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_util.c?rev=432829&r1=432828&r2=432829&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_util.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_util.c Sat Aug 19 03:37:11 2006
@@ -317,7 +317,6 @@
used = set_time_str(buf, usable_size);
if (line) {
-#if _MT_CODE
/* Log [pid:threadid] for all levels except REQUEST. */
/* This information helps to correlate lines from different logs.
*/
/* Performance is no issue, because with production log levels */
@@ -329,19 +328,6 @@
rc = snprintf(&buf[used], usable_size - used,
"[%04d:%04d] ", getpid(), jk_gettid());
#endif
-#else
- /* Log [pid] for all levels except REQUEST. */
- /* This information helps to correlate lines from different logs.
*/
- /* Performance is no issue, because with production log levels */
- /* we only call it often, if we have a lot of errors */
-#ifdef USE_SPRINTF /* until we get a snprintf function */
- rc = sprintf(&buf[used], "[%04d] ", getpid());
-#else
- rc = snprintf(&buf[used], usable_size - used,
- "[%04d] ", getpid());
-#endif
-#endif
-
used += rc;
if (rc < 0 || usable_size - used < 8) {
return 0;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]