commit 59c06fb: [Minor] Unbreak force actions
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Oct 15 14:07:06 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-10-15 15:05:33 +0100
URL: https://github.com/rspamd/rspamd/commit/59c06fb22e658ac2b61001f1f7728fa7ab2416d0 (HEAD -> master)
[Minor] Unbreak force actions
---
src/plugins/lua/force_actions.lua | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/plugins/lua/force_actions.lua b/src/plugins/lua/force_actions.lua
index eed095d4e..69cc63a66 100644
--- a/src/plugins/lua/force_actions.lua
+++ b/src/plugins/lua/force_actions.lua
@@ -101,7 +101,8 @@ local function gen_cb(params)
end
local ret = e:process(task)
- if params.limit and ret > params.limit then
+ lua_util.debugm(N, task, "expression %s returned %s", params.expr, ret)
+ if (not params.limit) or ret > params.limit then
if params.subject then
task:set_metric_subject(params.subject)
end
More information about the Commits
mailing list