commit ef7953c: [Minor] Reduce severity of learn skip
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Mar 11 12:42:03 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-03-11 12:39:35 +0000
URL: https://github.com/rspamd/rspamd/commit/ef7953c47d971e4872655e146dc5c3742079021d
[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;
More information about the Commits
mailing list