aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-12 17:57:08 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-12 17:57:08 +0100
commit17a7d2e236715ada721749e19bca861778060900 (patch)
tree0a4d38932de35177326a2912755ad97fea02fcd8 /src/plugins
parent7444a19c5d7c9f09efd2b4f29a2299f92015b458 (diff)
downloadrspamd-17a7d2e236715ada721749e19bca861778060900.tar.gz
rspamd-17a7d2e236715ada721749e19bca861778060900.zip
[Minor] Improve errors logging
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/emails.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/lua/emails.lua b/src/plugins/lua/emails.lua
index 5f076e1d5..282f53bb4 100644
--- a/src/plugins/lua/emails.lua
+++ b/src/plugins/lua/emails.lua
@@ -52,7 +52,8 @@ local function check_email_rule(task, rule, addr)
local function emails_dns_cb(_, _, results, err)
if err and (err ~= 'requested record is not found'
and err ~= 'no records with this name') then
- logger.errx(task, 'Error querying DNS(%s): %s', to_resolve, err)
+ logger.errx(task, 'Error querying DNS(%s.%s): %s', to_resolve,
+ rule['dnsbl'], err)
elseif results then
local expected_found = false
local symbol = rule['symbol']