diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-03 17:09:02 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-03 17:09:02 +0100 |
commit | 98f9ed8e84873dad4c1e65454a2bddd2a0dae4b0 (patch) | |
tree | 75335ee9b829bef0d8f4dd633b44527be5323bf1 /lualib/lua_util.lua | |
parent | 5bc16cb715d8d8849efa9f8b46da4657e0ccd2ec (diff) | |
download | rspamd-98f9ed8e84873dad4c1e65454a2bddd2a0dae4b0.tar.gz rspamd-98f9ed8e84873dad4c1e65454a2bddd2a0dae4b0.zip |
[Minor] Fix missing require
Diffstat (limited to 'lualib/lua_util.lua')
-rw-r--r-- | lualib/lua_util.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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) |