Skip to content

Commit

Permalink
app_perl: more debug messages to catch per execution errors
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jul 8, 2022
1 parent 8c91045 commit a466d0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/app_perl/perlfunc.c
Expand Up @@ -149,7 +149,7 @@ int perl_exec2(struct sip_msg* _msg, char* fnc, char* mystr) {
call_pv(fnc, G_EVAL|G_SCALAR); /* call the function */

if(SvTRUE(ERRSV)) {
LM_WARN("perl error: %s\n", SvPV_nolen(ERRSV));
LM_WARN("perl error for [%s]: %s\n", ZSW(fnc), SvPV_nolen(ERRSV));
}

SPAGAIN; /* refresh stack pointer */
Expand All @@ -160,5 +160,6 @@ int perl_exec2(struct sip_msg* _msg, char* fnc, char* mystr) {
FREETMPS; /* free that return value */
LEAVE; /* ...and the XPUSHed "mortal" args.*/

LM_DBG("executed [%s] with return code: %d\n", ZSW(fnc), retval);
return retval;
}

0 comments on commit a466d0b

Please sign in to comment.