aboutsummaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-06 20:01:16 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-06 20:01:16 +0100
commit7179d09a634f1c8b605f5602f19a3fb8a5fb5976 (patch)
tree88a0dec1d71a93bf6a1a85ac8d1f7fd1482b4114 /src/controller.c
parentda83d3b494f02ff1b4070c812e5b328b86ace4cd (diff)
downloadrspamd-7179d09a634f1c8b605f5602f19a3fb8a5fb5976.tar.gz
rspamd-7179d09a634f1c8b605f5602f19a3fb8a5fb5976.zip
Log message if failed to learn.
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/controller.c b/src/controller.c
index 0c4ca14a8..cc3d85681 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;
}