Skip to content

Commit

Permalink
Add ShowNode and CompiledNode to PrintEvent as special case, quiet-co…
Browse files Browse the repository at this point in the history
…mpatible events
  • Loading branch information
dbeatty10 committed Nov 5, 2024
1 parent 65d7ba5 commit 9dfe785
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbt_common/events/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
from dbt_common.events.format import timestamp_to_datetime_string
from dbt_common.utils.encoding import ForgivingJSONEncoder

PRINT_EVENT_NAME = "PrintEvent"
PRINT_EVENT_NAMES = ("PrintEvent", "ShowNode", "CompiledNode")


def _is_print_event(msg: EventMsg) -> bool:
return msg.info.name == PRINT_EVENT_NAME
return msg.info.name in PRINT_EVENT_NAMES


# A Filter is a function which takes a BaseEvent and returns True if the event
Expand Down

0 comments on commit 9dfe785

Please sign in to comment.