summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-10-13 22:57:36 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-10-13 23:15:39 +0100
commit18c57cd8eedd61ecf51af46e5279ebfa77851330 (patch)
treecb68a7a06370d1bfe966abf6f5cf00fbf243c320
parent3d96b5715582e37677f8917bc88e9811cdb2b7a0 (diff)
downloadrspamd-18c57cd8eedd61ecf51af46e5279ebfa77851330.tar.gz
rspamd-18c57cd8eedd61ecf51af46e5279ebfa77851330.zip
[Minor] Add some debug logs for mx_check
-rw-r--r--src/plugins/lua/mx_check.lua3
1 files changed, 3 insertions, 0 deletions
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()