From: Vsevolod Stakhov Date: Mon, 6 Jul 2015 19:01:16 +0000 (+0100) Subject: Log message if failed to learn. X-Git-Tag: 1.0.0~440 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7179d09a634f1c8b605f5602f19a3fb8a5fb5976;p=thirdparty%2Frspamd.git Log message if failed to learn. --- diff --git a/src/controller.c b/src/controller.c index 0c4ca14a8a..cc3d856815 100644 --- a/src/controller.c +++ b/src/controller.c @@ -922,6 +922,7 @@ rspamd_controller_learn_fin_task (void *ud) if (rspamd_learn_task_spam (session->cl, task, session->is_spam, &err) == RSPAMD_STAT_PROCESS_ERROR) { + msg_info ("cannot learn <%s>: %e", task->message_id); rspamd_controller_send_error (conn_ent, 500 + err->code, err->message); return TRUE; }