diff options
Diffstat (limited to 'src/plugins/lua/fann_classifier.lua')
-rw-r--r-- | src/plugins/lua/fann_classifier.lua | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/lua/fann_classifier.lua b/src/plugins/lua/fann_classifier.lua index ca6fb2026..3b360d9a0 100644 --- a/src/plugins/lua/fann_classifier.lua +++ b/src/plugins/lua/fann_classifier.lua @@ -89,8 +89,7 @@ local function maybe_load_fann(task, continue_cb, call_if_fail) {key, 'version', 'data', 'spam', 'ham'} -- arguments ) if not ret then - rspamd_logger.errx(task, 'redis error on host %s', upstream:get_addr()) - upstream:fail() + rspamd_logger.err(task, 'got error connecting to redis') end end @@ -124,8 +123,7 @@ local function maybe_load_fann(task, continue_cb, call_if_fail) {key, 'version'} -- arguments ) if not ret then - rspamd_logger.errx(task, 'redis error on host %s', upstream:get_addr()) - upstream:fail() + rspamd_logger.err(task, 'got error connecting to redis') end end @@ -227,8 +225,7 @@ local function save_fann(task, is_spam) conn:add_cmd('HINCRBY', {key, 'ham', 1}) end else - rspamd_logger.errx(task, 'redis error on host %s: %s', upstream:get_addr()) - upstream:fail() + rspamd_logger.err(task, 'got error connecting to redis') end end |