aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-08-24 10:53:27 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-08-24 10:53:27 +0100
commitb55e61b1ee78c1645c710d8d8ba5ea4bf0298b99 (patch)
treeca04a0e4947b5d34970478a002ea6fcaff85d4b1 /lualib
parent6e5b3bd6f946073d0bd15885170b920dc9394bc2 (diff)
downloadrspamd-b55e61b1ee78c1645c710d8d8ba5ea4bf0298b99.tar.gz
rspamd-b55e61b1ee78c1645c710d8d8ba5ea4bf0298b99.zip
[Minor] Pet luacheck
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_util.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/lualib/lua_util.lua b/lualib/lua_util.lua
index c4a925ed8..75d218da3 100644
--- a/lualib/lua_util.lua
+++ b/lualib/lua_util.lua
@@ -1108,7 +1108,6 @@ end
-- Performs fast debug log for a specific module
--]]
exports.debugm = function(mod, obj_or_fmt, fmt_or_something, ...)
- local logger = require "rspamd_logger"
if unconditional_debug or debug_modules[mod] then
if type(obj_or_fmt) == 'string' then
logger.logx(log_level, mod, '', 2, obj_or_fmt, fmt_or_something, ...)
@@ -1123,7 +1122,6 @@ end
-- Add debugging alias so logging to `alias` will be treated as logging to `mod`
--]]
exports.add_debug_alias = function(mod, alias)
- local logger = require "rspamd_logger"
debug_aliases[alias] = mod
if debug_modules[mod] then