diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/task.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; |