aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/lua/fann_redis.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/fann_redis.lua b/src/plugins/lua/fann_redis.lua
index e73c95a32..beea591a5 100644
--- a/src/plugins/lua/fann_redis.lua
+++ b/src/plugins/lua/fann_redis.lua
@@ -535,14 +535,14 @@ local function train_fann(_, ev_base, elt)
end
end
-- Invalidate ANN
- rspamd_logger.infox('invalidate ANN %s: training data is invalid')
+ rspamd_logger.infox(rspamd_config, 'invalidate ANN %s: training data is invalid', elt)
redis_make_request(ev_base,
rspamd_config,
nil,
true, -- is write
redis_invalidate_cb, --callback
'EVALSHA', -- command
- {redis_locked_invalidate_sha, 1, elt}
+ {redis_locked_invalidate_sha, 1, gen_fann_prefix(elt)}
)
else
learning_spawned = true