Skip to content

Commit

Permalink
Filter out verbose top-level warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
austinweisgrau committed Oct 23, 2023
1 parent 9fd0187 commit d8db20d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion parsons/utilities/dbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,10 @@ def log_results(self, command_str: str, stdout: str, stderr: str) -> None:
if row["info"]["level"] == "error":
logger.error(log_message)
error_messages.append(log_message)
elif row["info"]["level"] == "warn":
# Capture model/test warnings but exclude verbose top-level warnings
elif (
row["info"]["level"] == "warn" and "[WARNING]" not in row["info"]["msg"]
):
logger.warning(log_message)
warn_messages.append(log_message)
elif "SKIP " in row["info"]["msg"]:
Expand Down

0 comments on commit d8db20d

Please sign in to comment.