From ef7953c47d971e4872655e146dc5c3742079021d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 11 Mar 2019 12:39:35 +0000 Subject: [PATCH] [Minor] Reduce severity of learn skip Issue: #2658 Closes: #2658 --- src/libserver/task.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/libserver/task.c b/src/libserver/task.c index 2b00f6805..972856f29 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -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; -- 2.39.5