diff options
author | Stefan Fritsch <sf@apache.org> | 2010-02-05 18:38:08 +0100 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2010-02-05 18:38:08 +0100 |
commit | bb616ddda3c8e1ec73d906f046d207eac1f7c261 (patch) | |
tree | 495030e61ee6d8b795f2bc68565a1728e17716ec /server | |
parent | Update transforms. (diff) | |
download | apache2-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.c | 2 | ||||
-rw-r--r-- | server/log.c | 2 |
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; |