aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-07-05 08:33:41 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-07-05 08:33:41 +0100
commit6570dd6f0f8b6eeabea23162dd9c61c0979c3a87 (patch)
tree6b8013097fde0d66e7562a1fb98dcbdd5fc49b60 /src/plugins/lua
parent2a243ba4f114f07b17f3181e5de74f0349a363fe (diff)
downloadrspamd-6570dd6f0f8b6eeabea23162dd9c61c0979c3a87.tar.gz
rspamd-6570dd6f0f8b6eeabea23162dd9c61c0979c3a87.zip
[Minor] Reduce hfilter log noise
Diffstat (limited to 'src/plugins/lua')
-rw-r--r--src/plugins/lua/hfilter.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/lua/hfilter.lua b/src/plugins/lua/hfilter.lua
index bbe80c547..ca77dddc4 100644
--- a/src/plugins/lua/hfilter.lua
+++ b/src/plugins/lua/hfilter.lua
@@ -188,6 +188,7 @@ local config = {
local compiled_regexp = {} -- cache of regexps
local check_local = false
local check_authed = false
+local N = "hfilter"
local function check_regexp(str, regexp_text)
local re = compiled_regexp[regexp_text]
@@ -228,7 +229,7 @@ local function check_host(task, host, symbol_suffix, eq_ip, eq_host)
local function check_host_cb_mx(_, to_resolve, results, err)
task:inc_dns_req()
if err and (err ~= 'requested record is not found' and err ~= 'no records with this name') then
- rspamd_logger.infox(task, 'error looking up %s: %s', to_resolve, err)
+ rspamd_logger.debugm(N, task, 'error looking up %s: %s', to_resolve, err)
end
if not results then
task:insert_result('HFILTER_' .. symbol_suffix .. '_NORES_A_OR_MX', 1.0,