]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Reduce severity of learn skip
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Mar 2019 12:39:35 +0000 (12:39 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Mar 2019 12:39:35 +0000 (12:39 +0000)
Issue: #2658
Closes: #2658
src/libserver/task.c

index 2b00f68058c400f5cabcf1b4cc98a953e4a6f3f7..972856f29765a45ce2c6acfe0892b8a8aed4eb07 100644 (file)
@@ -822,7 +822,12 @@ rspamd_task_process (struct rspamd_task *task, guint stages)
                                                                "Unknown statistics error");
                                        }
 
-                                       msg_err_task ("learn error: %e", stat_error);
+                                       if (stat_error->code >= 400) {
+                                               msg_err_task ("learn error: %e", stat_error);
+                                       }
+                                       else {
+                                               msg_notice_task ("skip learning: %e", stat_error);
+                                       }
 
                                        if (!(task->flags & RSPAMD_TASK_FLAG_LEARN_AUTO)) {
                                                task->err = stat_error;