From: Vsevolod Stakhov Date: Thu, 25 Oct 2018 13:22:06 +0000 (+0100) Subject: [Minor] Fix debugm logic X-Git-Tag: 1.8.2~137 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=55fd8637509981e691f1163948b1b2c472aba2d6;p=thirdparty%2Frspamd.git [Minor] Fix debugm logic --- diff --git a/lualib/lua_util.lua b/lualib/lua_util.lua index 86f862f364..18e37b3c5f 100644 --- a/lualib/lua_util.lua +++ b/lualib/lua_util.lua @@ -750,7 +750,7 @@ 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, ...) + logger.logx(log_level, mod, '', 2, obj_or_fmt, fmt_or_something, ...) else logger.logx(log_level, mod, obj_or_fmt, 2, fmt_or_something, ...) end