diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-11-16 13:24:44 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-11-16 13:24:44 +0200 |
commit | 56cc6c85ad3812bbc2651ca2095d6b4b6c420ccb (patch) | |
tree | e0ab46e7869f0a7a320af27343e5db61196598ba /src/plugins/lua/mx_check.lua | |
parent | 03e3d7063308dd169d5b1692ccd28403c16ddd76 (diff) | |
download | rspamd-56cc6c85ad3812bbc2651ca2095d6b4b6c420ccb.tar.gz rspamd-56cc6c85ad3812bbc2651ca2095d6b4b6c420ccb.zip |
[Minor] Fix upstreams handling
Diffstat (limited to 'src/plugins/lua/mx_check.lua')
-rw-r--r-- | src/plugins/lua/mx_check.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/lua/mx_check.lua b/src/plugins/lua/mx_check.lua index fbf68d6d7..f5a44bc4e 100644 --- a/src/plugins/lua/mx_check.lua +++ b/src/plugins/lua/mx_check.lua @@ -90,8 +90,7 @@ local function mx_check(task) {key, tostring(settings.expire_novalid), '0'} -- arguments ) if not ret then - rspamd_logger.errx(task, 'Redis SETEX failed') - upstream:fail() + rspamd_logger.err(task, 'got error connecting to redis') end else local valid_mx = {} @@ -108,8 +107,7 @@ local function mx_check(task) {key, tostring(settings.expire), table.concat(valid_mx, ';')} -- arguments ) if not ret then - rspamd_logger.errx(task, 'Redis SETEX failed') - upstream:fail() + rspamd_logger.err(task, 'error connecting to redis') end end end |