From e14bd789c8c9bb8cc6975cf84440cef7ba68a5ea Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 12 May 2014 14:51:58 +0100 Subject: Improve logging for fuzzy process errors. --- src/plugins/fuzzy_check.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 146450528..1ee1013e6 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; -- cgit v1.2.3