Skip to content

Commit e84711d

Browse files
committed
bugfix: incorrectly used ngx_conf_log_error by using NGX_ERROR as the first argument, as reported by runner-mei in github issue #92.
1 parent 37f749e commit e84711d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ngx_http_lua_conf.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ ngx_http_lua_init_main_conf(ngx_conf_t *cf, void *conf)
4848

4949
if (lmcf->lua == NULL) {
5050
if (ngx_http_lua_init_vm(cf, lmcf) != NGX_CONF_OK) {
51-
ngx_conf_log_error(NGX_ERROR, cf, 0, "Failed to initialize Lua VM");
51+
ngx_conf_log_error(NGX_LOG_ERR, cf, 0,
52+
"Failed to initialize Lua VM");
5253
return NGX_CONF_ERROR;
5354
}
5455

0 commit comments

Comments
 (0)