Skip to content

Commit

Permalink
[Minor] Lua_util: Allow to enable debug logging by a single method
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Sep 5, 2019
1 parent bd5a342 commit f2b60f9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lualib/lua_util.lua
Expand Up @@ -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
Expand Down

0 comments on commit f2b60f9

Please sign in to comment.