From: Vsevolod Stakhov Date: Thu, 22 Aug 2019 11:29:35 +0000 (+0100) Subject: [Minor] Add some debugging X-Git-Tag: 2.0~361 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a0fd44840c7456f226c29a6cd15bc01f7a31930a;p=rspamd.git [Minor] Add some debugging --- diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index 38052f6f0..f0f1ec719 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -430,6 +430,8 @@ local function multimap_callback(task, rule) local pre_filter = rule['prefilter'] local function match_element(r, value, callback) + lua_util.debugm(N, task, 'check value %s for multimap %s', value, + rule.symbol) if not value then return false end @@ -877,6 +879,8 @@ local function multimap_callback(task, rule) if ext then local fake_fname = string.format('detected.%s', ext) + lua_util.debugm(N, task, 'detected filename %s (%s content-type)', + fake_fname, detected_ct) match_filename(rule, fake_fname) end end