From: Vsevolod Stakhov Date: Mon, 12 May 2014 13:51:58 +0000 (+0100) Subject: Improve logging for fuzzy process errors. X-Git-Tag: 0.7.0~219 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e14bd789c8c9bb8cc6975cf84440cef7ba68a5ea;p=thirdparty%2Frspamd.git Improve logging for fuzzy process errors. --- diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 146450528c..1ee1013e64 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -988,7 +988,7 @@ fuzzy_process_handler (struct rspamd_http_connection_entry *conn_ent, err = rspamd_mempool_alloc0 (task->task_pool, sizeof (GError *)); r = process_message (task); if (r == -1) { - msg_warn ("processing of message failed"); + msg_warn ("cannot process message for fuzzy"); rspamd_task_free (task, FALSE); rspamd_controller_send_error (conn_ent, 400, "Message processing error"); return; @@ -1022,13 +1022,13 @@ fuzzy_process_handler (struct rspamd_http_connection_entry *conn_ent, } if (res == -1) { - msg_warn ("processing of message failed"); + msg_warn ("cannot send fuzzy request: %s", strerror (errno)); rspamd_task_free (task, FALSE); rspamd_controller_send_error (conn_ent, 400, "Message sending error"); return; } else if (!processed) { - msg_warn ("processing of message failed"); + msg_warn ("no rules to match fuzzy with flag %d", flag); rspamd_task_free (task, FALSE); rspamd_controller_send_error (conn_ent, 404, "No fuzzy rules matched"); return;