diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-14 17:12:49 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-14 17:13:04 +0000 |
commit | 74c546aa44e81880a35ecffd1b913829f163f3b7 (patch) | |
tree | e4ec99c3ef664aa64a143986545bde5149f64979 /src | |
parent | 5dc60f33095b459e249299bfa5587d0230d73b4a (diff) | |
download | rspamd-74c546aa44e81880a35ecffd1b913829f163f3b7.tar.gz rspamd-74c546aa44e81880a35ecffd1b913829f163f3b7.zip |
[Minor] Fix tag for learning messages
Diffstat (limited to 'src')
-rw-r--r-- | src/controller.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/controller.c b/src/controller.c index c2a486666..42d7bbb03 100644 --- a/src/controller.c +++ b/src/controller.c @@ -1599,7 +1599,7 @@ rspamd_controller_learn_fin_task (void *ud) if (RSPAMD_TASK_IS_PROCESSED (task)) { /* Successful learn */ - msg_info_session ("<%s> learned message as %s: %s", + msg_info_task ("<%s> learned message as %s: %s", rspamd_inet_address_to_string (session->from_addr), session->is_spam ? "spam" : "ham", task->message_id); @@ -1608,7 +1608,7 @@ rspamd_controller_learn_fin_task (void *ud) } if (!rspamd_task_process (task, RSPAMD_TASK_PROCESS_LEARN)) { - msg_info_session ("cannot learn <%s>: %e", task->message_id, task->err); + msg_info_task ("cannot learn <%s>: %e", task->message_id, task->err); if (task->err) { rspamd_controller_send_error (conn_ent, task->err->code, "%s", @@ -1626,7 +1626,7 @@ rspamd_controller_learn_fin_task (void *ud) task->err->message); } else { - msg_info_session ("<%s> learned message as %s: %s", + msg_info_task ("<%s> learned message as %s: %s", rspamd_inet_address_to_string (session->from_addr), session->is_spam ? "spam" : "ham", task->message_id); |