diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2008-05-26 10:54:59 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2008-05-26 10:54:59 +0000 |
| commit | 2ae6727da79defdf546df0b553c7a391ec2515ec (patch) | |
| tree | a9df8d61df20db10b3a502f280b00e282fcfeee7 /src/http/modules/ngx_http_log_module.c | |
| parent | 9b1fe561480de82feed414250cc802c7d9afd897 (diff) | |
| download | nginx-2ae6727da79defdf546df0b553c7a391ec2515ec.tar.gz nginx-2ae6727da79defdf546df0b553c7a391ec2515ec.tar.bz2 | |
fix error log message
Diffstat (limited to 'src/http/modules/ngx_http_log_module.c')
| -rw-r--r-- | src/http/modules/ngx_http_log_module.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; } } |
