From 1b28223f35986a874fe7f1c88919eaf81131b61a Mon Sep 17 00:00:00 2001 From: Rainer Jung Date: Thu, 14 May 2009 11:18:58 +0000 Subject: [PATCH] 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 --- server/log.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/log.c b/server/log.c index b604c6daa5..c830faf8ba 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; } -- 2.50.1