commit fd1be2d: [Minor] Log a debug message when ratelimit skipped

moisseev moiseev at mezonplus.ru
Mon Jul 29 17:50:41 UTC 2024


Author: moisseev
Date: 2023-12-22 13:44:42 +0300
URL: https://github.com/rspamd/rspamd/commit/fd1be2dec994a005ecb1d86bdceb95944ef679fe (refs/pull/4757/head)

[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
 


More information about the Commits mailing list