From: Vsevolod Stakhov Date: Thu, 4 Aug 2016 12:03:19 +0000 (+0100) Subject: [Minor] Add some debug for multimap depends X-Git-Tag: 1.3.2~50 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9726ea50037730f9ce841bc05512089884804fbc;p=rspamd.git [Minor] Add some debug for multimap depends --- 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