]> git.kaiwu.me - nginx.git/commitdiff
fix error log message
authorIgor Sysoev <igor@sysoev.ru>
Mon, 26 May 2008 10:54:59 +0000 (10:54 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 26 May 2008 10:54:59 +0000 (10:54 +0000)
src/http/modules/ngx_http_log_module.c

index caa1efdb06733ac12e261f27eb7f17a62c82ff78..3d8730a1ad3b00913b76675f0d63bf8befa470a8 100644 (file)
@@ -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;
         }
     }