From: Carsten Rosenberg Date: Fri, 4 Jun 2021 13:23:06 +0000 (+0200) Subject: [Minor] multimap - add match debug / fix typo X-Git-Tag: 3.0~344^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F3784%2Fhead;p=rspamd.git [Minor] multimap - add match debug / fix typo --- 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)))