diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-05 15:04:04 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-05 15:04:04 +0100 |
commit | f2b60f9e335b8890ed079c2c6b56b31d6d98e200 (patch) | |
tree | d63fc470f689331400443299c77de904f29dfcf2 /lualib | |
parent | bd5a342c6a3dd0857d0392865624e49ce179c5e9 (diff) | |
download | rspamd-f2b60f9e335b8890ed079c2c6b56b31d6d98e200.tar.gz rspamd-f2b60f9e335b8890ed079c2c6b56b31d6d98e200.zip |
[Minor] Lua_util: Allow to enable debug logging by a single method
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/lua_util.lua | 8 |
1 files changed, 8 insertions, 0 deletions
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 |