From: Vsevolod Stakhov Date: Thu, 5 Sep 2019 14:04:04 +0000 (+0100) Subject: [Minor] Lua_util: Allow to enable debug logging by a single method X-Git-Tag: 2.0~275 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f2b60f9e335b8890ed079c2c6b56b31d6d98e200;p=rspamd.git [Minor] Lua_util: Allow to enable debug logging by a single method --- diff --git a/lualib/lua_util.lua b/lualib/lua_util.lua index 39150dbe6..e010c9974 100644 --- a/lualib/lua_util.lua +++ b/lualib/lua_util.lua @@ -970,6 +970,14 @@ exports.init_debug_logging = function(config) end end +exports.enable_debug_logging = function() + unconditional_debug = true +end + +exports.disable_debug_logging = function() + unconditional_debug = false +end + --[[[ -- @function lua_util.debugm(module, [log_object], format, ...) -- Performs fast debug log for a specific module