exec: debug message with number of results for exec_avp()
authorDaniel-Constantin Mierla <miconda@gmail.com>
Fri, 7 Jun 2019 07:55:04 +0000 (09:55 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Fri, 7 Jun 2019 07:55:04 +0000 (09:55 +0200)
src/modules/exec/exec.c

index 6bcf01f..0e809ed 100644 (file)
@@ -282,8 +282,11 @@ int exec_avp(struct sip_msg *msg, char *cmd, pvname_list_p avpl)
 
                i++;
        }
-       if(i == 0)
+       if(i == 0) {
                LM_DBG("no result from %s\n", cmd);
+       } else {
+               LM_DBG("%d results from %s\n", i, cmd);
+       }
        /* success */
        ret = 1;