diff --git a/.requirements b/.requirements index 870f2c6f4f4..26b43ba859f 100644 --- a/.requirements +++ b/.requirements @@ -6,7 +6,7 @@ OPENSSL=3.2.1 PCRE=10.43 LIBEXPAT=2.5.0 -LUA_KONG_NGINX_MODULE=4e0133a955cb46c1dda18614bf91b4cb69874c63 # 0.9.1 +LUA_KONG_NGINX_MODULE=691ba795ced07364d491e8abbdf0c8c8d3778c14 # 0.10.0 LUA_RESTY_LMDB=7d2581cbe30cde18a8482d820c227ca0845c0ded # 1.4.2 LUA_RESTY_EVENTS=8448a92cec36ac04ea522e78f6496ba03c9b1fd8 # 0.2.0 LUA_RESTY_WEBSOCKET=60eafc3d7153bceb16e6327074e0afc3d94b1316 # 0.4.0 diff --git a/changelog/unreleased/kong/bump-lua-kong-nginx-module.yml b/changelog/unreleased/kong/bump-lua-kong-nginx-module.yml index 0127f7159ac..b66d912e4c3 100644 --- a/changelog/unreleased/kong/bump-lua-kong-nginx-module.yml +++ b/changelog/unreleased/kong/bump-lua-kong-nginx-module.yml @@ -1,3 +1,3 @@ -message: "Bumped lua-kong-nginx-module from 0.8.0 to 0.9.1" +message: "Bumped lua-kong-nginx-module from 0.8.0 to 0.10.0" type: dependency scope: Core diff --git a/kong/api/routes/debug.lua b/kong/api/routes/debug.lua index 79fb8fc0428..dade7628d0c 100644 --- a/kong/api/routes/debug.lua +++ b/kong/api/routes/debug.lua @@ -36,7 +36,7 @@ local function handle_put_log_level(self, broadcast) return kong.response.exit(400, { message = "timeout must be greater than or equal to 0" }) end - local cur_log_level = get_log_level(LOG_LEVELS[kong.configuration.log_level]) + local cur_log_level = get_log_level() if cur_log_level == log_level then local message = "log level is already " .. self.params.log_level @@ -95,7 +95,7 @@ end local routes = { ["/debug/node/log-level"] = { GET = function(self) - local cur_level = get_log_level(LOG_LEVELS[kong.configuration.log_level]) + local cur_level = get_log_level() if type(LOG_LEVELS[cur_level]) ~= "string" then local message = "unknown log level: " .. tostring(cur_level) diff --git a/kong/runloop/log_level.lua b/kong/runloop/log_level.lua index 5f253375246..3deaa5131c3 100644 --- a/kong/runloop/log_level.lua +++ b/kong/runloop/log_level.lua @@ -34,8 +34,7 @@ end local function init_handler() local shm_log_level = ngx.shared.kong:get(constants.DYN_LOG_LEVEL_KEY) - local cur_log_level = kong_log.get_log_level( - constants.LOG_LEVELS[kong.configuration.log_level]) + local cur_log_level = kong_log.get_log_level() local timeout = (tonumber( ngx.shared.kong:get(constants.DYN_LOG_LEVEL_TIMEOUT_AT_KEY)) or 0) - ngx.time()