diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-08-18 17:26:23 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-08-18 17:26:23 +0400 |
commit | d4bdfa8504c3484bdf836990cf313a9de8cc64bd (patch) | |
tree | 67b13d0529372154a7fefe5b26d09336d502e8bd /src | |
parent | 802fed1d86a4b0e580b30e896cc7332786f23a63 (diff) | |
download | rspamd-d4bdfa8504c3484bdf836990cf313a9de8cc64bd.tar.gz rspamd-d4bdfa8504c3484bdf836990cf313a9de8cc64bd.zip |
* Improve logging
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/fuzzy_check.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index c016530d0..209788feb 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -67,6 +67,7 @@ struct fuzzy_client_session { struct event ev; struct timeval tv; struct worker_task *task; + struct storage_server *server; }; struct fuzzy_learn_session { @@ -249,7 +250,8 @@ fuzzy_io_callback (int fd, short what, void *arg) return; err: - msg_err ("fuzzy_io_callback: got error on IO, %d, %s", errno, strerror (errno)); + msg_err ("fuzzy_io_callback: got error on IO with server %s:%d, %d, %s", session->server->name, session->server->port, + errno, strerror (errno)); ok: event_del (&session->ev); close (fd); @@ -336,6 +338,7 @@ fuzzy_symbol_callback (struct worker_task *task, void *unused) session->state = 0; session->h = part->fuzzy; session->task = task; + session->server = selected; event_add (&session->ev, &session->tv); task->save.saved ++; } |