Mercurial > hg > nginx
comparison src/http/modules/ngx_http_log_module.c @ 3038:cd8738e76610
strict testing "access_log off"
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 23 Aug 2009 17:06:33 +0000 |
parents | c7d57b539248 |
children | 204ea173234f |
comparison
equal
deleted
inserted
replaced
3037:0278f13b04c5 | 3038:cd8738e76610 |
---|---|
835 | 835 |
836 value = cf->args->elts; | 836 value = cf->args->elts; |
837 | 837 |
838 if (ngx_strcmp(value[1].data, "off") == 0) { | 838 if (ngx_strcmp(value[1].data, "off") == 0) { |
839 llcf->off = 1; | 839 llcf->off = 1; |
840 return NGX_CONF_OK; | 840 if (cf->args->nelts == 2) { |
841 return NGX_CONF_OK; | |
842 } | |
843 | |
844 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, | |
845 "invalid parameter \"%V\"", &value[2]); | |
846 return NGX_CONF_ERROR; | |
841 } | 847 } |
842 | 848 |
843 if (llcf->logs == NULL) { | 849 if (llcf->logs == NULL) { |
844 llcf->logs = ngx_array_create(cf->pool, 2, sizeof(ngx_http_log_t)); | 850 llcf->logs = ngx_array_create(cf->pool, 2, sizeof(ngx_http_log_t)); |
845 if (llcf->logs == NULL) { | 851 if (llcf->logs == NULL) { |