Browse Source

[Minor] Fix logging in emails/asn modules

tags/1.4.1
Andrew Lewis 7 years ago
parent
commit
63e5a6fa8d
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/plugins/lua/asn.lua
  2. 1
    1
      src/plugins/lua/emails.lua

+ 1
- 1
src/plugins/lua/asn.lua View File

@@ -56,7 +56,7 @@ local function asn_check(task)
local asn_check_func = {}
function asn_check_func.rspamd(ip)
local function rspamd_dns_cb(_, _, results, dns_err)
if dns_err then
if dns_err and (dns_err ~= 'requested record is not found' and dns_err ~= 'no records with this name') then
rspamd_logger.errx(task, 'error querying dns: %s', dns_err)
end
if not (results and results[1]) then return end

+ 1
- 1
src/plugins/lua/emails.lua View File

@@ -25,7 +25,7 @@ local logger = require "rspamd_logger"
-- Check rule for a single email
local function check_email_rule(task, rule, addr)
local function emails_dns_cb(_, to_resolve, results, err)
if err then
if err and (err ~= 'requested record is not found' and err ~= 'no records with this name') then
logger.errx(task, 'Error querying DNS: %1', err)
elseif results then
logger.infox(task, '<%1> email: [%2] resolved for symbol: %3',

Loading…
Cancel
Save