Skip to content

Commit

Permalink
Utilize the quiet attribute for ShowNode and CompiledNode
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeatty10 committed Apr 16, 2024
1 parent c3c605d commit 91e501e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core/dbt/events/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,9 @@ def message(self) -> str:
{"node": self.node_name, "show": json.loads(self.preview)}, indent=2
)
else:
if self.is_inline:
if self.quiet:
return self.preview
elif self.is_inline:
return f"Previewing inline node:\n{self.preview}"
else:
return f"Previewing node '{self.node_name}':\n{self.preview}"
Expand All @@ -1558,7 +1560,9 @@ def message(self) -> str:
else:
return json.dumps({"node": self.node_name, "compiled": self.compiled}, indent=2)
else:
if self.is_inline:
if self.quiet:
return self.compiled
elif self.is_inline:
return f"Compiled inline node is:\n{self.compiled}"
else:
return f"Compiled node '{self.node_name}' is:\n{self.compiled}"
Expand Down

0 comments on commit 91e501e

Please sign in to comment.