diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-24 10:53:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-24 10:53:16 +0000 |
commit | 4a409413d88a32e7e2bc7a7271d19053dc29d14e (patch) | |
tree | fb00216c6480d7c3fa6a6c62545b7828a3662fd7 /src | |
parent | cbc608a75432e9e7f088cdc5ac50ce05d2c0ec7f (diff) | |
parent | a5b53f56d5fc68111069512b9775e646a0c00612 (diff) | |
download | rspamd-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.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 |