From 8889734ebc04ca253c5756c85f0b13420012a050 Mon Sep 17 00:00:00 2001 From: Carsten Rosenberg Date: Fri, 4 Jun 2021 15:23:06 +0200 Subject: [PATCH] [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))) -- 2.39.5