commit f2b60f9: [Minor] Lua_util: Allow to enable debug logging by a single method
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Sep 5 14:35:05 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-09-05 15:04:04 +0100
URL: https://github.com/rspamd/rspamd/commit/f2b60f9e335b8890ed079c2c6b56b31d6d98e200
[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
More information about the Commits
mailing list