From: Vsevolod Stakhov Date: Sat, 23 Mar 2019 13:32:07 +0000 (+0000) Subject: [Minor] Print virtual deps X-Git-Tag: 1.9.1~54 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a48289f97bf6363f2cddffdeba072552180302ac;p=rspamd.git [Minor] Print virtual deps --- 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