From 9726ea50037730f9ce841bc05512089884804fbc Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 4 Aug 2016 13:03:19 +0100 Subject: [PATCH] [Minor] Add some debug for multimap depends --- src/plugins/lua/multimap.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index 506fd4455..90d552a93 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -662,7 +662,6 @@ local function add_multimap_rule(key, newrule) return true end, iter(str))), '') table.insert(atoms, atom) - return atom end @@ -681,8 +680,12 @@ local function add_multimap_rule(key, newrule) {parse_atom, process_atom}, rspamd_config:get_mempool()) if expression then newrule['expression'] = expression - each(function(v) rspamd_config:register_dependency(newrule['symbol'], v) end, - atoms) + + each(function(v) + rspamd_logger.debugx(rspamd_config, 'add dependency %s -> %s', + newrule['symbol'], v) + rspamd_config:register_dependency(newrule['symbol'], v) + end, atoms) end end return newrule -- 2.39.5