summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-21 16:03:52 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-21 16:03:52 +0100
commit7299f62dc0aeaa15057aac74ae74e95bd9ebb9b6 (patch)
tree61b9259c68480a64f699c1cc1d058a8c3d162333 /src/plugins
parent109250260129d885e879e35e6bc8b7a50b7c8b0a (diff)
downloadrspamd-7299f62dc0aeaa15057aac74ae74e95bd9ebb9b6.tar.gz
rspamd-7299f62dc0aeaa15057aac74ae74e95bd9ebb9b6.zip
Improve fuzzy IO errors logging.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/fuzzy_check.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c
index f27c0ee5a..8d9aaf926 100644
--- a/src/plugins/fuzzy_check.c
+++ b/src/plugins/fuzzy_check.c
@@ -822,8 +822,9 @@ fuzzy_io_callback (gint fd, short what, void *arg)
return;
}
else if (ret == -1) {
- msg_err_task ("got error on IO with server %s, %d, %s",
+ msg_err_task ("got error on IO with server %s, on %s, %d, %s",
rspamd_upstream_name (session->server),
+ session->state == 1 ? "read" : "write",
errno,
strerror (errno));
rspamd_upstream_fail (session->server);