From: Bill Stoddard Date: Tue, 30 Jul 2002 18:18:03 +0000 (+0000) Subject: Log error message to the client without the path name. X-Git-Tag: 2.0.40~74 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d53209f9bcfcbb5f8467cfe52aabd0851ef8d4b;p=apache Log error message to the client without the path name. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96241 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_cgi.c b/modules/generators/mod_cgi.c index 6fc59dd2dd..2e0b360cd0 100644 --- a/modules/generators/mod_cgi.c +++ b/modules/generators/mod_cgi.c @@ -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); diff --git a/modules/generators/mod_cgid.c b/modules/generators/mod_cgid.c index 77e182b5f7..fd43f5afb7 100644 --- a/modules/generators/mod_cgid.c +++ b/modules/generators/mod_cgid.c @@ -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)); } } }