summaryrefslogtreecommitdiffstats
path: root/lualib/lua_meta.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-08-10 18:16:34 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-08-10 18:16:34 +0100
commit11043c12801e027ad1352dc1f5da943cafb640eb (patch)
treef5e9720de934b38812793a4297fdfd848fb524dd /lualib/lua_meta.lua
parentcd994934d1f2bfd7ca484a5588c1d9911f140c35 (diff)
downloadrspamd-11043c12801e027ad1352dc1f5da943cafb640eb.tar.gz
rspamd-11043c12801e027ad1352dc1f5da943cafb640eb.zip
[Feature] Use pure Lua debugm function
Diffstat (limited to 'lualib/lua_meta.lua')
-rw-r--r--lualib/lua_meta.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_meta.lua b/lualib/lua_meta.lua
index 0161eb5c9..d81709dab 100644
--- a/lualib/lua_meta.lua
+++ b/lualib/lua_meta.lua
@@ -357,7 +357,7 @@ local metafunctions = {
}
local function rspamd_gen_metatokens(task)
- local rspamd_logger = require "rspamd_logger"
+ local lua_util = require "lua_util"
local ipairs = ipairs
local metatokens = {}
local cached = task:cache_get('metatokens')
@@ -368,7 +368,7 @@ local function rspamd_gen_metatokens(task)
for _,mt in ipairs(metafunctions) do
local ct = mt.cb(task)
for i,tok in ipairs(ct) do
- rspamd_logger.debugm(N, task, "metatoken: %s = %s", mt.desc[i], tok)
+ lua_util.debugm(N, task, "metatoken: %s = %s", mt.desc[i], tok)
table.insert(metatokens, tok)
end
end