Skip to content

Commit

Permalink
[Minor] Allow to enable specific module debug
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Aug 4, 2021
1 parent 3a97fbb commit 65bba48
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lualib/lua_util.lua
Expand Up @@ -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
Expand Down

0 comments on commit 65bba48

Please sign in to comment.