summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2010-02-05 18:38:08 +0100
committerStefan Fritsch <sf@apache.org>2010-02-05 18:38:08 +0100
commitbb616ddda3c8e1ec73d906f046d207eac1f7c261 (patch)
tree495030e61ee6d8b795f2bc68565a1728e17716ec /server
parentUpdate transforms. (diff)
downloadapache2-bb616ddda3c8e1ec73d906f046d207eac1f7c261.tar.xz
apache2-bb616ddda3c8e1ec73d906f046d207eac1f7c261.zip
Print directive name in error message.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@907012 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
-rw-r--r--server/core.c2
-rw-r--r--server/log.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/core.c b/server/core.c
index 35d472a74f..df0cdf12b5 100644
--- a/server/core.c
+++ b/server/core.c
@@ -2628,7 +2628,7 @@ static const char *set_loglevel(cmd_parms *cmd, void *dummy, const char *arg)
if ((str = ap_getword_conf(cmd->pool, &arg))) {
err = ap_parse_log_level(str, &cmd->server->loglevel);
if (err != NULL)
- return err;
+ return apr_psprintf(cmd->pool, "LogLevel: %s", err);
}
else {
return "LogLevel requires level keyword";
diff --git a/server/log.c b/server/log.c
index c3abd5a8d4..a0c6995c53 100644
--- a/server/log.c
+++ b/server/log.c
@@ -1129,7 +1129,7 @@ AP_DECLARE(void) ap_close_piped_log(piped_log *pl)
AP_DECLARE(const char *) ap_parse_log_level(const char *str, int *val)
{
- char *err = "Loglevel keyword must be one of emerg/alert/crit/error/warn/"
+ char *err = "Log level keyword must be one of emerg/alert/crit/error/warn/"
"notice/info/debug";
int i = 0;