diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-05-12 14:51:58 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-05-12 14:51:58 +0100 |
commit | e14bd789c8c9bb8cc6975cf84440cef7ba68a5ea (patch) | |
tree | 1c636ace096076ace7d7330841a47ba92e70288d /src | |
parent | 10fa03d65fb1b8c7b9b660c04144c4612264c9d7 (diff) | |
download | rspamd-e14bd789c8c9bb8cc6975cf84440cef7ba68a5ea.tar.gz rspamd-e14bd789c8c9bb8cc6975cf84440cef7ba68a5ea.zip |
Improve logging for fuzzy process errors.
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/fuzzy_check.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |