raven/modular/nginx-cp/nginx-1.24-lua-lowering-luajit-alert-severity.patch
2024-02-21 13:47:54 +06:00

22 lines
1.2 KiB
Diff

diff -Naur nginx-1.24.0_orig/lua-nginx-module-0.10.24/src/ngx_http_lua_module.c nginx-1.24.0/lua-nginx-module-0.10.24/src/ngx_http_lua_module.c
--- nginx-1.24.0_orig/lua-nginx-module-0.10.24/src/ngx_http_lua_module.c 2023-03-21 19:51:04.000000000 +0600
+++ nginx-1.24.0/lua-nginx-module-0.10.24/src/ngx_http_lua_module.c 2023-04-12 10:30:21.823589409 +0600
@@ -858,7 +858,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 "
@@ -869,7 +869,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 "