Skip to content

Commit

Permalink
Merge pull request #516 from basedosdados/staging/include-vars-to-exe…
Browse files Browse the repository at this point in the history
…cute-dbt

[feat] include warns to dbt logs
  • Loading branch information
laura-l-amaral authored Oct 24, 2023
2 parents c42d1d6 + 12af9fd commit 17c2ae2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pipelines/utils/execute_dbt_model/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def run_dbt_model(
logs=True,
)
for event in logs_dict["result"]["logs"]:
if event["levelname"] == "INFO":
if event["levelname"] in ("INFO", "WARN"):
log(event["message"])
if event["levelname"] == "DEBUG":
if "On model" in event["message"]:
Expand All @@ -75,7 +75,7 @@ def run_dbt_model(
logs=True,
)
for event in logs_dict["result"]["logs"]:
if event["levelname"] == "INFO":
if event["levelname"] in ("INFO", "WARN"):
log(event["message"])
if event["levelname"] == "DEBUG":
if "On model" in event["message"]:
Expand Down

0 comments on commit 17c2ae2

Please sign in to comment.