From 65bba487b9a38fb56579b4e181d233b9cfed2db3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 4 Aug 2021 14:29:35 +0100 Subject: [PATCH] [Minor] Allow to enable specific module debug --- lualib/lua_util.lua | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.5