summaryrefslogtreecommitdiffhomepage
path: root/src/http
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-04-24 14:27:36 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-04-24 14:27:36 +0000
commitc134eb058dc9a2a14921da8ea87926aca2cdab33 (patch)
treeae8f94aaa2e48ff4a9c3032690d9641514bda8e7 /src/http
parent7b9feda70b6814028aa9f7d5448c0b800f7f5691 (diff)
downloadnginx-c134eb058dc9a2a14921da8ea87926aca2cdab33.tar.gz
nginx-c134eb058dc9a2a14921da8ea87926aca2cdab33.tar.bz2
change ngx_log_create_errlog() interface
Diffstat (limited to 'src/http')
-rw-r--r--src/http/ngx_http_core_module.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 26f24b360..3162d39f8 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -4101,7 +4101,11 @@ ngx_http_core_error_log(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
{
ngx_http_core_loc_conf_t *lcf = conf;
- lcf->err_log = ngx_log_create_errlog(cf->cycle, cf->args);
+ ngx_str_t *value;
+
+ value = cf->args->elts;
+
+ lcf->err_log = ngx_log_create_errlog(cf->cycle, &value[1]);
if (lcf->err_log == NULL) {
return NGX_CONF_ERROR;
}