summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-12-17 12:45:13 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-12-17 12:45:13 +0000
commit8817113d95f8cb937dddcd2cd60f43c0a63398ff (patch)
treeda7b10b740a4412c1a03315f5966687b33230d32
parent04799a6f7c69c525969255a3bf5acaa4959552d4 (diff)
downloadnginx-8817113d95f8cb937dddcd2cd60f43c0a63398ff.tar.gz
nginx-8817113d95f8cb937dddcd2cd60f43c0a63398ff.tar.bz2
test degradation parameters
-rw-r--r--src/http/modules/ngx_http_degradation_module.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_degradation_module.c b/src/http/modules/ngx_http_degradation_module.c
index 53fde211f..b221f2215 100644
--- 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_command_t *cmd, void *conf)
"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;
}