aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_scanners/dcc.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-18 11:51:17 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-18 11:51:17 +0100
commitf5b203c98ace2eb818f8497af293bea2967ed83d (patch)
tree2371073b948793f5f6fe9006ebd6d7f9083d375b /lualib/lua_scanners/dcc.lua
parentf41ac57b3a61a1abfe562a930734a45f36ba5604 (diff)
downloadrspamd-f5b203c98ace2eb818f8497af293bea2967ed83d.tar.gz
rspamd-f5b203c98ace2eb818f8497af293bea2967ed83d.zip
[Minor] Lua_scanners: Improve logging
Diffstat (limited to 'lualib/lua_scanners/dcc.lua')
-rw-r--r--lualib/lua_scanners/dcc.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/lualib/lua_scanners/dcc.lua b/lualib/lua_scanners/dcc.lua
index ac7915990..e82c97cfc 100644
--- a/lualib/lua_scanners/dcc.lua
+++ b/lualib/lua_scanners/dcc.lua
@@ -146,15 +146,12 @@ local function dcc_check(task, content, digest, rule)
retransmits = retransmits - 1
- lua_util.debugm(rule.name, task, '%s: Request Error: %s - retries left: %s',
- rule.log_prefix, err, retransmits)
-
-- Select a different upstream!
upstream = rule.upstreams:get_upstream_round_robin()
addr = upstream:get_addr()
- lua_util.debugm(rule.name, task, '%s: retry IP: %s:%s',
- rule.log_prefix, addr, addr:get_port())
+ lua_util.debugm(rule.name, task, '%s: error: %s; retry IP: %s; retries left: %s',
+ rule.log_prefix, err, addr, retransmits)
tcp.request({
task = task,