]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add some debug for multimap depends
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 4 Aug 2016 12:03:19 +0000 (13:03 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 4 Aug 2016 12:03:19 +0000 (13:03 +0100)
src/plugins/lua/multimap.lua

index 506fd44557366b6635f998baa4d8fc5daec1ed49..90d552a93f28a8c182492425e18e7b397068f924 100644 (file)
@@ -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