浏览代码

dispatcher: Log dest sets after variable update

Marat Gareev 4 年之前
父节点
当前提交
f4b8bede6a
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/modules/dispatcher/dispatch.c

+ 4 - 4
src/modules/dispatcher/dispatch.c

@@ -895,14 +895,14 @@ next_line:
 		goto error;
 		goto error;
 	}
 	}
 
 
-	LM_DBG("found [%d] dest sets\n", _ds_list_nr);
-
 	fclose(f);
 	fclose(f);
 	f = NULL;
 	f = NULL;
 	/* Update list - should it be sync'ed? */
 	/* Update list - should it be sync'ed? */
 	_ds_list_nr = setn;
 	_ds_list_nr = setn;
 	*crt_idx = *next_idx;
 	*crt_idx = *next_idx;
 
 
+	LM_DBG("found [%d] dest sets\n", _ds_list_nr);
+
 	ds_log_sets();
 	ds_log_sets();
 	return 0;
 	return 0;
 
 
@@ -1143,14 +1143,14 @@ int ds_load_db(void)
 		goto err2;
 		goto err2;
 	}
 	}
 
 
-	LM_DBG("found [%d] dest sets\n", _ds_list_nr);
-
 	ds_dbf.free_result(ds_db_handle, res);
 	ds_dbf.free_result(ds_db_handle, res);
 
 
 	/* update data - should it be sync'ed? */
 	/* update data - should it be sync'ed? */
 	_ds_list_nr = setn;
 	_ds_list_nr = setn;
 	*crt_idx = *next_idx;
 	*crt_idx = *next_idx;
 
 
+	LM_DBG("found [%d] dest sets\n", _ds_list_nr);
+
 	ds_log_sets();
 	ds_log_sets();
 
 
 	if(dest_errs > 0)
 	if(dest_errs > 0)