httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apache-1.3/src/main util_script.c
Date Thu, 21 Mar 2002 05:56:52 GMT
wrowe       02/03/20 21:56:52

  Modified:    src/main util_script.c
  Log:
    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]
  
  Revision  Changes    Path
  1.162     +7 -0      apache-1.3/src/main/util_script.c
  
  Index: util_script.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/main/util_script.c,v
  retrieving revision 1.161
  retrieving revision 1.162
  diff -u -r1.161 -r1.162
  --- util_script.c	21 Mar 2002 05:55:37 -0000	1.161
  +++ util_script.c	21 Mar 2002 05:56:52 -0000	1.162
  @@ -1153,6 +1153,13 @@
               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,
  
  
  

Mime
View raw message