Skip to content

Commit

Permalink
core: print more details about process when doing child init
Browse files Browse the repository at this point in the history
(cherry picked from commit 71f1121)
(cherry picked from commit 79a0934)
  • Loading branch information
miconda committed Feb 22, 2018
1 parent 688e0db commit 775ba9f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/core/sr_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -917,10 +917,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 */
Expand Down

0 comments on commit 775ba9f

Please sign in to comment.