diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-18 11:51:17 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-18 11:51:17 +0100 |
commit | f5b203c98ace2eb818f8497af293bea2967ed83d (patch) | |
tree | 2371073b948793f5f6fe9006ebd6d7f9083d375b /lualib/lua_scanners/fprot.lua | |
parent | f41ac57b3a61a1abfe562a930734a45f36ba5604 (diff) | |
download | rspamd-f5b203c98ace2eb818f8497af293bea2967ed83d.tar.gz rspamd-f5b203c98ace2eb818f8497af293bea2967ed83d.zip |
[Minor] Lua_scanners: Improve logging
Diffstat (limited to 'lualib/lua_scanners/fprot.lua')
-rw-r--r-- | lualib/lua_scanners/fprot.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lualib/lua_scanners/fprot.lua b/lualib/lua_scanners/fprot.lua index c42618434..8baaeedde 100644 --- a/lualib/lua_scanners/fprot.lua +++ b/lualib/lua_scanners/fprot.lua @@ -103,7 +103,8 @@ local function fprot_check(task, content, digest, rule) upstream = rule.upstreams:get_upstream_round_robin() addr = upstream:get_addr() - lua_util.debugm(rule.name, task, '%s [%s]: retry IP: %s', rule['symbol'], rule['type'], addr) + 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, |