Browse Source

exec: debug message with number of results for exec_avp()

Daniel-Constantin Mierla 6 năm trước cách đây
mục cha
commit
01c50c84ae
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      src/modules/exec/exec.c

+ 4 - 1
src/modules/exec/exec.c

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