# HG changeset patch # User Igor Sysoev # Date 1211799299 0 # Node ID 1c009c5a163b1fd529ea70d4881c3b4320c55410 # Parent 6d7466a9cf253fa5564a2db8f95758fccd23525e fix error log message diff --git a/src/http/modules/ngx_http_log_module.c b/src/http/modules/ngx_http_log_module.c --- 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, 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; } }