From 2ae6727da79defdf546df0b553c7a391ec2515ec Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 26 May 2008 10:54:59 +0000 Subject: [PATCH] fix error log message --- src/http/modules/ngx_http_log_module.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/http/modules/ngx_http_log_module.c b/src/http/modules/ngx_http_log_module.c index caa1efdb0..3d8730a1a 100644 --- a/src/http/modules/ngx_http_log_module.c +++ b/src/http/modules/ngx_http_log_module.c @@ -797,7 +797,10 @@ ngx_http_log_set_format(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) if (fmt[i].name.len == value[1].len && ngx_strcmp(fmt[i].name.data, value[1].data) == 0) { - return "duplicate \"log_format\" name"; + ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, + "duplicate \"log_format\" name \"%V\"", + &value[1]); + return NGX_CONF_ERROR; } }