raven/modular/nginx-cp/nginx-1.24-lua-mod-lowering-luajit-alert-severity.patch

22 lines
1.1 KiB
Diff
Raw Permalink Normal View History

2024-04-09 10:24:56 +06:00
diff -ruN a/lua-nginx-module-0.10.26/src/ngx_http_lua_module.c b/lua-nginx-module-0.10.26/src/ngx_http_lua_module.c
--- a/lua-nginx-module-0.10.26/src/ngx_http_lua_module.c 2023-11-14 05:23:08.000000000 +0600
+++ b/lua-nginx-module-0.10.26/src/ngx_http_lua_module.c 2023-11-20 11:08:10.584363198 +0600
2024-02-21 13:47:54 +06:00
@@ -888,7 +888,7 @@
#ifndef OPENRESTY_LUAJIT
if (ngx_process != NGX_PROCESS_SIGNALLER && !ngx_test_config) {
- ngx_log_error(NGX_LOG_ALERT, cf->log, 0,
+ ngx_log_error(NGX_LOG_INFO, cf->log, 0,
"detected a LuaJIT version which is not OpenResty's"
"; many optimizations will be disabled and "
"performance will be compromised (see "
@@ -899,7 +899,7 @@
}
#else
# if !defined(HAVE_LUA_RESETTHREAD)
- ngx_log_error(NGX_LOG_ALERT, cf->log, 0,
+ ngx_log_error(NGX_LOG_INFO, cf->log, 0,
"detected an old version of OpenResty's LuaJIT missing "
"the lua_resetthread API and thus the "
"performance will be compromised; please upgrade to the "