From: Andrew Lewis Date: Thu, 24 Nov 2016 08:01:48 +0000 (+0200) Subject: [Minor] Fix some logging in antivirus module X-Git-Tag: 1.4.1~87^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1170%2Fhead;p=rspamd.git [Minor] Fix some logging in antivirus module --- diff --git a/src/plugins/lua/antivirus.lua b/src/plugins/lua/antivirus.lua index 6060b0e89..87ebcf99c 100644 --- a/src/plugins/lua/antivirus.lua +++ b/src/plugins/lua/antivirus.lua @@ -194,7 +194,9 @@ local function check_av_cache(task, rule, fn) yield_result(task, rule, data) end else - rspamd_logger.errx(task, 'Got error checking cache: %1', err) + if err then + rspamd_logger.errx(task, 'Got error checking cache: %1', err) + end fn() end end