From db0ab741a43a56ed898112fa09af6e465272cd25 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Thu, 13 Jun 2019 10:04:35 +0100 Subject: Just debugprint() the socket fd number if there was a client read error. --- blabouncer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blabouncer.c b/blabouncer.c index 04a87ba..baf27c6 100644 --- a/blabouncer.c +++ b/blabouncer.c @@ -741,7 +741,7 @@ void dochat(int *serversockfd, int *clientsockfd, struct settings *settings) { // connection closed debugprint(DEBUG_SOME, "bouncer-client: socket %d hung up\n", i); } else { - debugprint(DEBUG_CRIT, "dochat(): client sockread() error (%s) (%s).\n", clientnumbytes, strerror(errno)); + debugprint(DEBUG_CRIT, "dochat(): client sockread() error fd '%d'.\n", i); } // Disconnect the client disconnectclient(i, clients, &ircdstate, settings); -- cgit v1.2.3