From: William A. Rowe Jr Date: Thu, 21 Mar 2002 05:56:52 +0000 (+0000) Subject: Provide Win32 users a log of the cgi command invoked, to assist X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddf7f7036ee6fc266c58caf022c8a051a13cb6c9;p=thirdparty%2Fapache%2Fhttpd.git Provide Win32 users a log of the cgi command invoked, to assist in debugging scripts, at LogLevel info. Also provide env vars at LogLevel debug for additional help to admins troubleshooting the ever mysterious "Premature end of script headers" error. Since this is the single most common cause of trouble reports on the newslist, at least this gives us something to point users at. [Aaron Bannert] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@94073 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/main/util_script.c b/src/main/util_script.c index 5b4a6e492cf..80861d6fde2 100644 --- a/src/main/util_script.c +++ b/src/main/util_script.c @@ -1153,6 +1153,13 @@ API_EXPORT(int) ap_call_exec(request_rec *r, child_info *pinfo, char *argv0, i++; } + ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_INFO, r->server, + "Invoking CGI Command '%s'", pCommand); + for (i = 0; env[i]; ++i) { + ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_DEBUG, r->server, + " CGI env[%d] = '%s'", i, env[i]); + } + if (CreateProcess(NULL, pCommand, NULL, NULL, TRUE, 0, pEnvBlock,