aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_util.lua8
1 files changed, 8 insertions, 0 deletions
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