Module: kamailio
Branch: master
Commit: 71f11210b6b36cf69aaf3c8318bba9da3334c4e0
URL:
https://github.com/kamailio/kamailio/commit/71f11210b6b36cf69aaf3c8318bba9d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-01-02T12:22:18+01:00
core: print more details about process when doing child init
---
Modified: src/core/sr_module.c
---
Diff:
https://github.com/kamailio/kamailio/commit/71f11210b6b36cf69aaf3c8318bba9d…
Patch:
https://github.com/kamailio/kamailio/commit/71f11210b6b36cf69aaf3c8318bba9d…
---
diff --git a/src/core/sr_module.c b/src/core/sr_module.c
index 489ae55593..594f3d6af8 100644
--- a/src/core/sr_module.c
+++ b/src/core/sr_module.c
@@ -934,10 +934,12 @@ static int init_mod_child( struct sr_module* m, int rank )
*/
if (init_mod_child(m->next, rank)!=0) return -1;
if (m->exports.init_child_f) {
- LM_DBG("rank %d: %s\n", rank, m->exports.name);
+ LM_DBG("idx %d rank %d: %s [%s]\n", process_no, rank,
+ m->exports.name, my_desc());
if (m->exports.init_child_f(rank)<0) {
- LM_ERR("Error while initializing module %s (%s)\n",
- m->exports.name, m->path);
+ LM_ERR("error while initializing module %s (%s)"
+ " (idx: %d rank: %d desc: [%s])\n",
+ m->exports.name, m->path, process_no, rank, my_desc());
return -1;
} else {
/* module correctly initialized */