]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix missing require
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 3 Jun 2019 16:09:02 +0000 (17:09 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 3 Jun 2019 16:09:02 +0000 (17:09 +0100)
lualib/lua_util.lua

index 3d1a2e732983d7bebce1011befa79cf50713e0e3..b5fbf78f0f93a82b2e0b7f84506a9268b64e28a4 100644 (file)
@@ -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)