commit 65bba48: [Minor] Allow to enable specific module debug
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Aug 4 15:00:05 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-08-04 14:29:35 +0100
URL: https://github.com/rspamd/rspamd/commit/65bba487b9a38fb56579b4e181d233b9cfed2db3
[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
More information about the Commits
mailing list