]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] #3129 Multiple classifiers on redis working incorrectly
authorresec <resec0109@gmail.com>
Thu, 7 Nov 2019 10:56:09 +0000 (18:56 +0800)
committerresec <resec0109@gmail.com>
Thu, 7 Nov 2019 10:56:09 +0000 (18:56 +0800)
src/libstat/backends/redis_backend.c

index 90afe66d3f4b73448a13e399cf2b3a3e0ba28839..7d79272c0995952907c4886c9f96c9e8247a27a3 100644 (file)
@@ -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););
                        }
                }
        }