Просмотр исходного кода

uac: debug messages when initializing the remote uac registration

Daniel-Constantin Mierla 6 лет назад
Родитель
Сommit
0fcb2607d2
2 измененных файлов с 3 добавлено и 0 удалено
  1. 1 0
      src/modules/uac/uac.c
  2. 2 0
      src/modules/uac/uac_reg.c

+ 1 - 0
src/modules/uac/uac.c

@@ -382,6 +382,7 @@ static int child_init(int rank)
 
 		kam_srand(getpid() * 17 +  time(0));
 		uac_reg_load_db();
+		LM_DBG("run initial uac registration routine\n");
 		uac_reg_timer(0);
 		for(;;){
 			/* update the local config framework structures */

+ 2 - 0
src/modules/uac/uac_reg.c

@@ -579,6 +579,8 @@ int reg_ht_add(reg_uac_t *reg)
 	reg_ht_add_byuuid(nr);
 	counter_inc(regtotal);
 
+	LM_DBG("added uuid: %.*s - l_user: %.*s\n", nr->l_uuid.len, nr->l_uuid.s,
+			nr->l_username.len, nr->l_username.s);
 	return 0;
 }