From f2b60f9e335b8890ed079c2c6b56b31d6d98e200 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 5 Sep 2019 15:04:04 +0100 Subject: [PATCH] [Minor] Lua_util: Allow to enable debug logging by a single method --- lualib/lua_util.lua | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.39.5