aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_log_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-08-23 17:06:33 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-08-23 17:06:33 +0000
commita79f8a5655e53d4a20200ac143080ee88f841448 (patch)
treec6ea164ce054569059402fa324a9bf13edaf9f38 /src/http/modules/ngx_http_log_module.c
parent5374610ace6144a5b92afecb6c13d293d2daa0bf (diff)
downloadnginx-a79f8a5655e53d4a20200ac143080ee88f841448.tar.gz
nginx-a79f8a5655e53d4a20200ac143080ee88f841448.zip
strict testing "access_log off"
Diffstat (limited to 'src/http/modules/ngx_http_log_module.c')
-rw-r--r--src/http/modules/ngx_http_log_module.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_log_module.c b/src/http/modules/ngx_http_log_module.c
index 170e3a264..a5ace7d63 100644
--- a/src/http/modules/ngx_http_log_module.c
+++ b/src/http/modules/ngx_http_log_module.c
@@ -837,7 +837,13 @@ ngx_http_log_set_log(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
if (ngx_strcmp(value[1].data, "off") == 0) {
llcf->off = 1;
- return NGX_CONF_OK;
+ if (cf->args->nelts == 2) {
+ return NGX_CONF_OK;
+ }
+
+ ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
+ "invalid parameter \"%V\"", &value[2]);
+ return NGX_CONF_ERROR;
}
if (llcf->logs == NULL) {