diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-06 20:07:42 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-06 20:07:42 +0100 |
commit | 32b15a1925b1fda8e0ed16a37d9c22b060b78512 (patch) | |
tree | 6fe586a3acf484632e66ad0291f3bfd4e28f9f27 /src | |
parent | c60a81d93b042890c86298dc6274a375dca3271a (diff) | |
download | rspamd-32b15a1925b1fda8e0ed16a37d9c22b060b78512.tar.gz rspamd-32b15a1925b1fda8e0ed16a37d9c22b060b78512.zip |
Fix error log.
Diffstat (limited to 'src')
-rw-r--r-- | src/controller.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/controller.c b/src/controller.c index cc3d85681..03e174637 100644 --- a/src/controller.c +++ b/src/controller.c @@ -922,8 +922,9 @@ 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); + msg_info ("cannot learn <%s>: %e", task->message_id, err); rspamd_controller_send_error (conn_ent, 500 + err->code, err->message); + return TRUE; } /* Successful learn */ |