Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit a5cd84d

Browse files
authored
Merge pull request #508 from MalanB/log-parser-artifacts
Add logs to indicate current artifact being parsed in debug mode
2 parents 4c311cf + 6b14972 commit a5cd84d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

data_diff/dbt_parser.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def get_datadiff_variables(self) -> dict:
6868

6969
def get_models(self):
7070
with open(self.project_dir / RUN_RESULTS_PATH) as run_results:
71+
logger.info(f"Parsing file {RUN_RESULTS_PATH}")
7172
run_results_dict = json.load(run_results)
7273
run_results_obj = self.parse_run_results(run_results=run_results_dict)
7374

@@ -93,18 +94,21 @@ def get_models(self):
9394

9495
def get_manifest_obj(self):
9596
with open(self.project_dir / MANIFEST_PATH) as manifest:
97+
logger.info(f"Parsing file {MANIFEST_PATH}")
9698
manifest_dict = json.load(manifest)
9799
manifest_obj = self.parse_manifest(manifest=manifest_dict)
98100
return manifest_obj
99101

100102
def get_project_dict(self):
101103
with open(self.project_dir / PROJECT_FILE) as project:
104+
logger.info(f"Parsing file {PROJECT_FILE}")
102105
project_dict = self.yaml.safe_load(project)
103106
return project_dict
104107

105108
def get_connection_creds(self) -> Tuple[Dict[str, str], str]:
106109
profiles_path = self.profiles_dir / PROFILES_FILE
107110
with open(profiles_path) as profiles:
111+
logger.info(f"Parsing file {profiles_path}")
108112
profiles = self.yaml.safe_load(profiles)
109113

110114
dbt_profile_var = self.project_dict.get("profile")

0 commit comments

Comments
 (0)