commit a48289f: [Minor] Print virtual deps

Vsevolod Stakhov vsevolod at highsecure.ru
Sat Mar 23 13:35:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-03-23 13:32:07 +0000
URL: https://github.com/rspamd/rspamd/commit/a48289f97bf6363f2cddffdeba072552180302ac

[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


More information about the Commits mailing list