aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-24 10:53:16 +0000
committerGitHub <noreply@github.com>2016-11-24 10:53:16 +0000
commit4a409413d88a32e7e2bc7a7271d19053dc29d14e (patch)
treefb00216c6480d7c3fa6a6c62545b7828a3662fd7 /src
parentcbc608a75432e9e7f088cdc5ac50ce05d2c0ec7f (diff)
parenta5b53f56d5fc68111069512b9775e646a0c00612 (diff)
downloadrspamd-4a409413d88a32e7e2bc7a7271d19053dc29d14e.tar.gz
rspamd-4a409413d88a32e7e2bc7a7271d19053dc29d14e.zip
Merge pull request #1170 from fatalbanana/av
[Minor] Fix some logging in antivirus module
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/antivirus.lua4
1 files changed, 3 insertions, 1 deletions
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