diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-11-24 10:01:48 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-11-24 10:02:12 +0200 |
commit | a5b53f56d5fc68111069512b9775e646a0c00612 (patch) | |
tree | 7081a7f4f6566b7d317f6efbd946b24c077df959 /src/plugins | |
parent | 90237d0d4b0196171226801438b70f8fd3f69686 (diff) | |
download | rspamd-a5b53f56d5fc68111069512b9775e646a0c00612.tar.gz rspamd-a5b53f56d5fc68111069512b9775e646a0c00612.zip |
[Minor] Fix some logging in antivirus module
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/antivirus.lua | 4 |
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 |