Skip to content

Commit

Permalink
Add logging to project registration
Browse files Browse the repository at this point in the history
  • Loading branch information
BAntonellini committed Sep 6, 2023
1 parent bae320a commit 476a555
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dbt_core_interface/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -6059,6 +6059,7 @@ def register(runners: DbtProjectContainer) -> Union[ServerResetResult, ServerErr
)

try:
LOGGER.info(f"Parsing dbt project: {project}")
new_runner = DbtProject(**kwargs)
except Exception as init_err:
response.status = 400
Expand All @@ -6074,6 +6075,7 @@ def register(runners: DbtProjectContainer) -> Union[ServerResetResult, ServerErr

runners[project] = new_runner
runners.add_parsed_project
LOGGER.info(f"Registered dbt project: {new_runner}")
return asdict(ServerRegisterResult(added=project, projects=runners.registered_projects()))


Expand Down

0 comments on commit 476a555

Please sign in to comment.