commit 18c57cd: [Minor] Add some debug logs for mx_check

Vsevolod Stakhov vsevolod at rspamd.com
Thu Oct 13 22:21:03 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-10-13 22:57:36 +0100
URL: https://github.com/rspamd/rspamd/commit/18c57cd8eedd61ecf51af46e5279ebfa77851330

[Minor] Add some debug logs for mx_check

---
 src/plugins/lua/mx_check.lua | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/plugins/lua/mx_check.lua b/src/plugins/lua/mx_check.lua
index cea636dfc..731520588 100644
--- a/src/plugins/lua/mx_check.lua
+++ b/src/plugins/lua/mx_check.lua
@@ -133,9 +133,11 @@ local function mx_check(task)
 
   local function gen_mx_a_callback(name, mxes)
     return function(_, _, results, err)
+      lua_util.debugm(N, task, "got DNS results for %s: %s", name, results)
       mxes[name].ips = results
 
       local function io_cb(io_err, _, conn)
+        lua_util.debugm(N, task, "TCP IO callback for %s, error: %s", name, io_err)
         if io_err then
           mxes[name].checked = true
           conn:close()
@@ -152,6 +154,7 @@ local function mx_check(task)
         check_results(mxes)
       end
       local function on_connect_cb(conn)
+        lua_util.debugm(N, task, "TCP connect callback for %s, error: %s", name, err)
         if err then
           mxes[name].checked = true
           conn:close()


More information about the Commits mailing list