From: Vsevolod Stakhov Date: Mon, 14 Nov 2016 17:12:49 +0000 (+0000) Subject: [Minor] Fix tag for learning messages X-Git-Tag: 1.4.0~69 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=74c546aa44e81880a35ecffd1b913829f163f3b7;p=rspamd.git [Minor] Fix tag for learning messages --- 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);