Skip to content

[DBT] Add support for the 'exceptions' jinja namespace#463

Merged
georgesittas merged 3 commits intomainfrom
jo/dbt_exceptions
Mar 1, 2023
Merged

[DBT] Add support for the 'exceptions' jinja namespace#463
georgesittas merged 3 commits intomainfrom
jo/dbt_exceptions

Conversation

@georgesittas
Copy link
Contributor

@georgesittas georgesittas commented Mar 1, 2023

@georgesittas georgesittas requested a review from a team March 1, 2023 15:32
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you look at the dbt implementation? Does it only print out the message or does it prepend something?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dbt implementation uses a python logger:
https://github.com/dbt-labs/dbt-core/blob/dev/octavius-catto/core/dbt/exceptions.py#LL925

With the changes introduced in your refactor, we can probably use python loggers too now, both here and for log.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use print for the time being, and I can improve both this and log by adding support for python logging.

@georgesittas georgesittas merged commit 422f166 into main Mar 1, 2023
@georgesittas georgesittas deleted the jo/dbt_exceptions branch March 1, 2023 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants