You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
If a user uses the print in the Jinja context, this print will go to stdout directly instead of going through the dbt-core's event system.
This would lead to things printed in jinja do not follow --log-format json config.
Expected Behavior
print in jinja follow dbt-core's flag --log-format
Steps To Reproduce
Run a run operation with a macro that has print inside and use --log-format json at the same time.
You will see dbt-core logs are in json but the things printed in jinja is in plain text.
Relevant log output
No response
Environment
- OS:
- Python:
- dbt:
Which database adapter are you using with dbt?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Is this a new bug in dbt-core?
Current Behavior
If a user uses the
print
in the Jinja context, this print will go to stdout directly instead of going through the dbt-core's event system.This would lead to things printed in jinja do not follow
--log-format json
config.Expected Behavior
print
in jinja follow dbt-core's flag --log-formatSteps To Reproduce
Run a run operation with a macro that has
print
inside and use--log-format json
at the same time.You will see dbt-core logs are in json but the things printed in jinja is in plain text.
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: