]> granicus.if.org Git - apache/commitdiff
Add name of program to spawn to the error
authorRainer Jung <rjung@apache.org>
Thu, 14 May 2009 11:18:58 +0000 (11:18 +0000)
committerRainer Jung <rjung@apache.org>
Thu, 14 May 2009 11:18:58 +0000 (11:18 +0000)
message, when starting piped loggers fails.

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

server/log.c

index b604c6daa52582a4c171a213fb160c47ef61413e..c830faf8ba0c2680d96a97c5734be989936c1efa 100644 (file)
@@ -328,7 +328,8 @@ static int open_error_log(server_rec *s, int is_main, apr_pool_t *p)
         rc = log_child(p, s->error_fname + 1, &dummy, is_main);
         if (rc != APR_SUCCESS) {
             ap_log_error(APLOG_MARK, APLOG_STARTUP, rc, NULL,
-                         "Couldn't start ErrorLog process");
+                         "Couldn't start ErrorLog process '%s'.",
+                         s->error_fname + 1);
             return DONE;
         }
 
@@ -1030,7 +1031,8 @@ AP_DECLARE(piped_log *) ap_open_piped_log(apr_pool_t *p, const char *program)
     rc = log_child(p, program, &dummy, 0);
     if (rc != APR_SUCCESS) {
         ap_log_error(APLOG_MARK, APLOG_STARTUP, rc, NULL,
-                     "Couldn't start piped log process");
+                     "Couldn't start piped log process '%s'.",
+                     (program == NULL) ? "NULL" : program);
         return NULL;
     }