Mercurial > hg > nginx
changeset 2036:1c009c5a163b
fix error log message
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 26 May 2008 10:54:59 +0000 |
parents | 6d7466a9cf25 |
children | aee889ff25ea |
files | src/http/modules/ngx_http_log_module.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_log_module.c Mon May 26 09:54:17 2008 +0000 +++ b/src/http/modules/ngx_http_log_module.c Mon May 26 10:54:59 2008 +0000 @@ -797,7 +797,10 @@ 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; } }