]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] multimap - add match debug / fix typo 3784/head
authorCarsten Rosenberg <c.rosenberg@heinlein-support.de>
Fri, 4 Jun 2021 13:23:06 +0000 (15:23 +0200)
committerCarsten Rosenberg <c.rosenberg@heinlein-support.de>
Fri, 4 Jun 2021 13:23:13 +0000 (15:23 +0200)
src/plugins/lua/multimap.lua

index 7faaaf265950f1be955657fa66aa64361d99d439..356b8f7c9f689c4447cd33ff7b1dff8e7cf4a469 100644 (file)
@@ -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)))