From fd1be2dec994a005ecb1d86bdceb95944ef679fe Mon Sep 17 00:00:00 2001 From: moisseev Date: Fri, 22 Dec 2023 13:44:42 +0300 Subject: [PATCH] [Minor] Log a debug message when ratelimit skipped for a local request --- src/plugins/lua/ratelimit.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua index 8227d9a6c..add5741e8 100644 --- a/src/plugins/lua/ratelimit.lua +++ b/src/plugins/lua/ratelimit.lua @@ -420,6 +420,7 @@ end local function ratelimit_cb(task) if not settings.allow_local and rspamd_lua_utils.is_rspamc_or_controller(task) then + lua_util.debugm(N, task, 'skip ratelimit for local request') return end -- 2.39.5