From e606b1c0e9cf8427d5c5c8f14cb6155cee65287e Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Thu, 11 Oct 2012 17:05:14 +0200 Subject: [PATCH] EVENT_CLIENT: to ease debugging put the function names in the log line; else we may have problems with the post mortem analysis to find out which path we went. --- citadel/event_client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/citadel/event_client.c b/citadel/event_client.c index 6b39829f9..22f629eda 100644 --- a/citadel/event_client.c +++ b/citadel/event_client.c @@ -581,7 +581,7 @@ IO_send_callback(struct ev_loop *loop, ev_io *watcher, int revents) if (errno != EAGAIN) { StopClientWatchers(IO, 1); EV_syslog(LOG_DEBUG, - "EVENT: Socket Invalid! [%d] [%s] [%d]\n", + "IO_send_callback(): Socket Invalid! [%d] [%s] [%d]\n", errno, strerror(errno), IO->SendBuf.fd); StrBufPrintf(IO->ErrMsg, "Socket Invalid! [%s]", @@ -814,7 +814,7 @@ IO_recv_callback(struct ev_loop *loop, ev_io *watcher, int revents) // FD is gone. kick it. StopClientWatchers(IO, 1); EV_syslog(LOG_DEBUG, - "EVENT: Socket Invalid! [%d] [%s] [%d]\n", + "IO_recv_callback(): Socket Invalid! [%d] [%s] [%d]\n", errno, strerror(errno), IO->SendBuf.fd); StrBufPrintf(IO->ErrMsg, "Socket Invalid! [%s]", -- 2.39.2