Module: kamailio
Branch: master
Commit: 5f249318adfe26b35426c2b43f4c3df31edc1de1
URL:
https://github.com/kamailio/kamailio/commit/5f249318adfe26b35426c2b43f4c3df…
Author: Eloy Coto <eloy.coto(a)gmail.com>
Committer: Eloy Coto <eloy.coto(a)gmail.com>
Date: 2017-06-20T14:06:48+01:00
evapi: Improved error message
Signed-off-by: Eloy Coto <eloy.coto(a)gmail.com>
---
Modified: src/modules/evapi/evapi_dispatch.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5f249318adfe26b35426c2b43f4c3df…
Patch:
https://github.com/kamailio/kamailio/commit/5f249318adfe26b35426c2b43f4c3df…
---
diff --git a/src/modules/evapi/evapi_dispatch.c b/src/modules/evapi/evapi_dispatch.c
index 1639c5d4d8..5429d6913b 100644
--- a/src/modules/evapi/evapi_dispatch.c
+++ b/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;
}