diff options
-rw-r--r-- | src/plugins/lua/ratelimit.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua index 8acc3edcf..a4a870b09 100644 --- a/src/plugins/lua/ratelimit.lua +++ b/src/plugins/lua/ratelimit.lua @@ -183,7 +183,11 @@ local function check_limits(task, args) end else if bucket > threshold then - task:set_pre_result('soft reject', 'Ratelimit exceeded') + rspamd_logger.infox(task, + 'ratelimit "%s" exceeded: %s elements with %s limit', + rtype, bucket, threshold) + task:set_pre_result('soft reject', + string.format('Ratelimit "%s" exceeded', rtype)) end end end |