commit a0fd448: [Minor] Add some debugging
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Aug 22 12:07:04 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-08-22 12:29:35 +0100
URL: https://github.com/rspamd/rspamd/commit/a0fd44840c7456f226c29a6cd15bc01f7a31930a
[Minor] Add some debugging
---
src/plugins/lua/multimap.lua | 4 ++++
1 file changed, 4 insertions(+)
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
More information about the Commits
mailing list