commit 8889734: [Minor] multimap - add match debug / fix typo

Carsten Rosenberg c.rosenberg at heinlein-support.de
Fri Jun 4 16:49:04 UTC 2021


Author: Carsten Rosenberg
Date: 2021-06-04 15:23:06 +0200
URL: https://github.com/rspamd/rspamd/commit/8889734ebc04ca253c5756c85f0b13420012a050 (refs/pull/3784/head)

[Minor] multimap - add match debug / fix typo

---
 src/plugins/lua/multimap.lua | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua
index 7faaaf265..356b8f7c9 100644
--- a/src/plugins/lua/multimap.lua
+++ b/src/plugins/lua/multimap.lua
@@ -473,6 +473,9 @@ local function multimap_callback(task, rule)
       ret = r.hash:get_key(value)
     end
 
+    lua_util.debugm(N, task, 'found return "%s" for multimap %s', ret, 
+    rule.symbol)
+
     if ret then
       if type(ret) == 'table' then
         for _,elt in ipairs(ret) do
@@ -577,7 +580,6 @@ local function multimap_callback(task, rule)
       symbol = rule.symbol
     end
 
-
     if opt then
       if type(opt) == 'table' then
         task:insert_result(forced, symbol, score, fun.totable(fun.map(tostring, opt)))


More information about the Commits mailing list