commit 98f9ed8: [Minor] Fix missing require

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Jun 3 16:14:07 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-06-03 17:09:02 +0100
URL: https://github.com/rspamd/rspamd/commit/98f9ed8e84873dad4c1e65454a2bddd2a0dae4b0

[Minor] Fix missing require

---
 lualib/lua_util.lua | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lualib/lua_util.lua b/lualib/lua_util.lua
index 3d1a2e732..b5fbf78f0 100644
--- a/lualib/lua_util.lua
+++ b/lualib/lua_util.lua
@@ -979,6 +979,7 @@ exports.callback_from_string = function(str)
   local ret, res_or_err = pcall(loadstring(str))
 
   if not ret or type(res_or_err) ~= 'function' then
+    local rspamd_logger = require "rspamd_logger"
     rspamd_logger.errx(rspamd_config, 'invalid callback (%s) - must be a function',
         res_or_err)
 


More information about the Commits mailing list