Mercurial > hg > nginx
changeset 3389:de27a5d044ff
test degradation parameters
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 17 Dec 2009 12:45:13 +0000 |
parents | d788521e4b0e |
children | 8854f4eb2839 |
files | src/http/modules/ngx_http_degradation_module.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_degradation_module.c +++ b/src/http/modules/ngx_http_degradation_module.c @@ -198,9 +198,14 @@ ngx_http_degradation(ngx_conf_t *cf, ngx "invalid sbrk size \"%V\"", &value[1]); return NGX_CONF_ERROR; } + + return NGX_CONF_OK; } - return NGX_CONF_OK; + ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, + "invalid parameter \"%V\"", &value[1]); + + return NGX_CONF_ERROR; }