2
0
Эх сурвалжийг харах

evapi: Improved error message

Signed-off-by: Eloy Coto <[email protected]>
Eloy Coto 8 жил өмнө
parent
commit
5f249318ad

+ 1 - 1
src/modules/evapi/evapi_dispatch.c

@@ -492,7 +492,7 @@ void evapi_accept_client(struct ev_loop *loop, struct ev_io *watcher, int revent
 	csock = accept(watcher->fd, (struct sockaddr *)&caddr, &clen);
 
 	if (csock < 0) {
-		LM_ERR("cannot accept the client\n");
+		LM_ERR("cannot accept the client '%s' err='%d'\n", gai_strerror(csock), csock);
 		free(evapi_client);
 		return;
 	}