diff options
author | Valentin Bartenev <vbart@nginx.com> | 2016-09-20 15:07:16 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2016-09-20 15:07:16 +0300 |
commit | 89f82c1155d0e2291f30819c38d438e112ba569a (patch) | |
tree | ddc283c3533ec2801242fd933b028e5213333087 /src/core/ngx_conf_file.c | |
parent | 1fd83ac0c83b2ffffbe5fdbaec61be4f1b39171b (diff) | |
download | nginx-89f82c1155d0e2291f30819c38d438e112ba569a.tar.gz nginx-89f82c1155d0e2291f30819c38d438e112ba569a.zip |
Fixed log levels of configuration parsing errors.
All the errors that prevent loading configuration must be printed on the "emerg"
log level. Previously, nginx might silently fail to load configuration in some
cases as the default log level is "error".
Diffstat (limited to 'src/core/ngx_conf_file.c')
-rw-r--r-- | src/core/ngx_conf_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ngx_conf_file.c b/src/core/ngx_conf_file.c index c60d5fb41..ea1dcebfb 100644 --- a/src/core/ngx_conf_file.c +++ b/src/core/ngx_conf_file.c @@ -1336,7 +1336,7 @@ ngx_conf_set_enum_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) return NGX_CONF_OK; } - ngx_conf_log_error(NGX_LOG_WARN, cf, 0, + ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "invalid value \"%s\"", value[1].data); return NGX_CONF_ERROR; @@ -1378,7 +1378,7 @@ ngx_conf_set_bitmask_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) } if (mask[m].name.len == 0) { - ngx_conf_log_error(NGX_LOG_WARN, cf, 0, + ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "invalid value \"%s\"", value[i].data); return NGX_CONF_ERROR; |