From c134eb058dc9a2a14921da8ea87926aca2cdab33 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 24 Apr 2009 14:27:36 +0000 Subject: change ngx_log_create_errlog() interface --- src/http/ngx_http_core_module.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/http') 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; } -- cgit