]> granicus.if.org Git - apache/commitdiff
Log error message to the client without the path name.
authorBill Stoddard <stoddard@apache.org>
Tue, 30 Jul 2002 18:18:03 +0000 (18:18 +0000)
committerBill Stoddard <stoddard@apache.org>
Tue, 30 Jul 2002 18:18:03 +0000 (18:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96241 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_cgi.c
modules/generators/mod_cgid.c

index 6fc59dd2ddf471dd894ed38c44be7d64a3d7e784..2e0b360cd082a46b6ed3b002065a9d0ee0ff31e9 100644 (file)
@@ -472,9 +472,9 @@ static apr_status_t run_cgi_child(apr_file_t **script_out,
     
         if (rc != APR_SUCCESS) {
             /* Bad things happened. Everyone should have cleaned up. */
-            ap_log_rerror(APLOG_MARK, APLOG_ERR, rc, r,
+            ap_log_rerror(APLOG_MARK, APLOG_ERR|APLOG_TOCLIENT, rc, r,
                           "couldn't create child process: %d: %s", rc,
-                          r->filename);
+                          apr_filename_of_pathname(r->filename));
         }
         else {
             apr_pool_note_subprocess(p, procnew, APR_KILL_AFTER_TIMEOUT);
index 77e182b5f70380832ccf655b3005c39ba55dffd9..fd43f5afb72d10f4cd27deef2339762df708c6d0 100644 (file)
@@ -653,8 +653,9 @@ static int cgid_server(void *data)
 
             if (rc != APR_SUCCESS) {
                 /* Bad things happened. Everyone should have cleaned up. */
-                ap_log_rerror(APLOG_MARK, APLOG_ERR, rc, r,
-                        "couldn't create child process: %d: %s", rc, r->filename);
+                ap_log_rerror(APLOG_MARK, APLOG_ERR|APLOG_TOCLIENT, rc, r,
+                              "couldn't create child process: %d: %s", rc, 
+                              apr_filename_of_pathname(r->filename));
             }
         }
     }