]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Lua_util: Allow to enable debug logging by a single method
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 5 Sep 2019 14:04:04 +0000 (15:04 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 5 Sep 2019 14:04:04 +0000 (15:04 +0100)
lualib/lua_util.lua

index 39150dbe6f1e4e898e1a27e7153513c6a2ba6da8..e010c99748ec85a77d51b389d6f1316b6b34eb95 100644 (file)
@@ -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