]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Allow to enable specific module debug
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 4 Aug 2021 13:29:35 +0000 (14:29 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 4 Aug 2021 13:29:35 +0000 (14:29 +0100)
lualib/lua_util.lua

index dadf3f3ded36ed6b0cf163aaf03c4889c22fa1c8..9dc0178398ff9c2e3dd122f9922326cc4232f37c 100644 (file)
@@ -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