From: Vsevolod Stakhov Date: Wed, 4 Aug 2021 13:29:35 +0000 (+0100) Subject: [Minor] Allow to enable specific module debug X-Git-Tag: 3.0~55 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=65bba487b9a38fb56579b4e181d233b9cfed2db3;p=rspamd.git [Minor] Allow to enable specific module debug --- diff --git a/lualib/lua_util.lua b/lualib/lua_util.lua index dadf3f3de..9dc017839 100644 --- a/lualib/lua_util.lua +++ b/lualib/lua_util.lua @@ -1094,6 +1094,12 @@ exports.enable_debug_logging = function() unconditional_debug = true end +exports.enable_debug_modules = function(...) + for _,m in ipairs({...}) do + debug_modules[m] = true + end +end + exports.disable_debug_logging = function() unconditional_debug = false end