commit 606c653: [Fix] #3129 Multiple classifiers on redis working incorrectly
resec
resec0109 at gmail.com
Mon Nov 18 11:49:09 UTC 2019
Author: resec
Date: 2019-11-07 18:56:09 +0800
URL: https://github.com/rspamd/rspamd/commit/606c653671216b6575e4966e4c84a2f8da2fe43f
[Fix] #3129 Multiple classifiers on redis working incorrectly
---
src/libstat/backends/redis_backend.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/src/libstat/backends/redis_backend.c b/src/libstat/backends/redis_backend.c
index 90afe66d3..7d79272c0 100644
--- a/src/libstat/backends/redis_backend.c
+++ b/src/libstat/backends/redis_backend.c
@@ -1325,13 +1325,10 @@ rspamd_redis_connected (redisAsyncContext *c, gpointer r, gpointer priv)
}
}
else {
- if (!rt->err) {
- g_set_error (&rt->err, rspamd_redis_stat_quark (), c->err,
- "skip obtaining bayes tokens for %s: "
- "not enough learns %d; %d required",
- rt->stcf->symbol, (int)rt->learned,
- rt->stcf->clcf->min_learns);
- }
+ msg_warn_task ("skip obtaining bayes tokens for %s of classifier "
+ "%s: not enough learns %d; %d required",
+ rt->stcf->symbol, rt->stcf->clcf->name,
+ (int)rt->learned, rt->stcf->clcf->min_learns););
}
}
}
More information about the Commits
mailing list