]> granicus.if.org Git - apache/commitdiff
Remove some getpid() logging, this is now also included in the error log
authorStefan Fritsch <sf@apache.org>
Wed, 30 Nov 2011 22:15:55 +0000 (22:15 +0000)
committerStefan Fritsch <sf@apache.org>
Wed, 30 Nov 2011 22:15:55 +0000 (22:15 +0000)
format.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1208835 13f79535-47bb-0310-9956-ffa450edef68

modules/core/mod_watchdog.c
modules/proxy/mod_proxy_ftp.c

index 8ec62ead15b033f098b6d4f0ac19880c4bc7c9c1..7fad72efd40c7d76601ee6513b60414d7b632791 100644 (file)
@@ -18,9 +18,6 @@
  */
 
 #include "apr.h"
-#if APR_HAVE_UNISTD_H
-#include <unistd.h>         /* for getpid() */
-#endif
 #if APR_HAVE_PROCESS_H
 #include <process.h>        /* for getpid() on Win32 */
 #endif
@@ -162,9 +159,8 @@ static void* APR_THREAD_FUNC wd_worker(apr_thread_t *thread, void *data)
     if (w->is_running) {
         watchdog_list_t *wl = w->callbacks;
         ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, wd_server_conf->s,
-                     "%sWatchdog (%s) running (%" APR_PID_T_FMT ")",
-                     w->singleton ? "Singleton" : "",
-                     w->name, getpid());
+                     "%sWatchdog (%s) running",
+                     w->singleton ? "Singleton" : "", w->name);
         apr_time_clock_hires(w->pool);
         if (wl) {
             apr_pool_t *ctx = NULL;
@@ -259,9 +255,8 @@ static void* APR_THREAD_FUNC wd_worker(apr_thread_t *thread, void *data)
         }
     }
     ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, wd_server_conf->s,
-                 "%sWatchdog (%s) stopping (%" APR_PID_T_FMT ")",
-                 w->singleton ? "Singleton" : "",
-                 w->name, getpid());
+                 "%sWatchdog (%s) stopping",
+                 w->singleton ? "Singleton" : "", w->name);
 
     if (locked)
         apr_proc_mutex_unlock(w->mutex);
index fdf87c176542e4a50662b64c31bca97935bf2568..e7ee16609ba86ea05e70e4b7b87ad3f50fb13f0d 100644 (file)
@@ -1917,9 +1917,8 @@ static int proxy_ftp_handler(request_rec *r, proxy_worker *worker,
             {
                 apr_off_t readbytes;
                 apr_brigade_length(bb, 0, &readbytes);
-                ap_log_error(APLOG_MARK, APLOG_DEBUG, 0,
-                             r->server, "proxy (PID %d): readbytes: %#x",
-                             getpid(), readbytes);
+                ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
+                             "proxy: readbytes: %#x", readbytes);
             }
 #endif
             /* sanity check */