Module: kamailio
Branch: master
Commit: 5f249318adfe26b35426c2b43f4c3df31edc1de1
URL: 
https://github.com/kamailio/kamailio/commit/5f249318adfe26b35426c2b43f4c3df31edc1de1

Author: Eloy Coto <[email protected]>
Committer: Eloy Coto <[email protected]>
Date: 2017-06-20T14:06:48+01:00

evapi: Improved error message

Signed-off-by: Eloy Coto <[email protected]>

---

Modified: src/modules/evapi/evapi_dispatch.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/5f249318adfe26b35426c2b43f4c3df31edc1de1.diff
Patch: 
https://github.com/kamailio/kamailio/commit/5f249318adfe26b35426c2b43f4c3df31edc1de1.patch

---

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;
        }


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to