summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-03-23 13:32:07 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-03-23 13:32:07 +0000
commita48289f97bf6363f2cddffdeba072552180302ac (patch)
treecab9deda3644f517c455df4839e7b0e8fa10e8d5
parent1b9dd8ff3e8943c341de867fadb7b888531e1bbb (diff)
downloadrspamd-a48289f97bf6363f2cddffdeba072552180302ac.tar.gz
rspamd-a48289f97bf6363f2cddffdeba072552180302ac.zip
[Minor] Print virtual deps
-rw-r--r--lualib/lua_squeeze_rules.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lualib/lua_squeeze_rules.lua b/lualib/lua_squeeze_rules.lua
index abe4abdbd..309d19969 100644
--- a/lualib/lua_squeeze_rules.lua
+++ b/lualib/lua_squeeze_rules.lua
@@ -151,8 +151,11 @@ end
-- TODO: poor approach, we register all virtual symbols with the previous real squeezed symbol
exports.squeeze_virtual = function(id, name)
+
if squeeze_function_ids[1] and id == squeeze_function_ids[1] and last_rule then
virtual_symbols[name] = last_rule
+ lua_util.debugm(SN, rspamd_config, 'add virtual symbol %s -> %s',
+ name, last_rule)
return id
end