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 20, 2023
1 parent 9fd0187 commit 1c55c8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parsons/utilities/dbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ 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 1c55c8f

Please sign in to comment.