From: Rainer Jung Date: Thu, 14 May 2009 11:18:58 +0000 (+0000) Subject: Add name of program to spawn to the error X-Git-Tag: 2.3.3~599 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b28223f35986a874fe7f1c88919eaf81131b61a;p=thirdparty%2Fapache%2Fhttpd.git Add name of program to spawn to the error message, when starting piped loggers fails. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@774730 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/log.c b/server/log.c index b604c6daa52..c830faf8ba0 100644 --- a/server/log.c +++ b/server/log.c @@ -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; }