Browse code

acc: debug messages to print the type of extra acc attrs

(cherry picked from commit 4bd77f1dae2eeacbe7384ac2838c691f76e077f1)

Daniel-Constantin Mierla authored on 11/11/2021 11:59:11
Showing 2 changed files
... ...
@@ -461,6 +461,7 @@ int acc_db_request( struct sip_msg *rq)
461 461
 
462 462
 	for( i++ ; i<m; i++) {
463 463
 		if (acc_extra_nullable == 1 && type_arr[i] == TYPE_NULL) {
464
+			LM_DBG("attr[%d] is NULL\n", i);
464 465
 			VAL_NULL(db_vals + i) = 1;
465 466
 		} else {
466 467
 			VAL_STR(db_vals+i) = val_arr[i];
... ...
@@ -258,6 +258,7 @@ int extra2strar(struct acc_extra *extra, struct sip_msg *rq, str *val_arr,
258 258
 				type_arr[n] = TYPE_STR;
259 259
 			}
260 260
 		}
261
+		LM_DBG("type of the extra attr[%d] set to: %d\n", n, type_arr[n]);
261 262
 		n++;
262 263
 
263 264
 		extra = extra->next;