diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-11 12:39:35 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-11 12:39:35 +0000 |
commit | ef7953c47d971e4872655e146dc5c3742079021d (patch) | |
tree | e24d8f16d0b3e6af7ceaa3c32aecc1b2b7899f08 /src | |
parent | 3c70c015b44d4ab2cf5740df3828c14648e4ea27 (diff) | |
download | rspamd-ef7953c47d971e4872655e146dc5c3742079021d.tar.gz rspamd-ef7953c47d971e4872655e146dc5c3742079021d.zip |
[Minor] Reduce severity of learn skip
Issue: #2658
Closes: #2658
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; |