From a48289f97bf6363f2cddffdeba072552180302ac Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 23 Mar 2019 13:32:07 +0000 Subject: [PATCH] [Minor] Print virtual deps --- lualib/lua_squeeze_rules.lua | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.5