From 9dfe7854b2119886e705b16a8cacdb8b3ff49773 Mon Sep 17 00:00:00 2001 From: Doug Beatty Date: Mon, 4 Nov 2024 22:27:19 -0600 Subject: [PATCH] Add ShowNode and CompiledNode to PrintEvent as special case, quiet-compatible events --- dbt_common/events/logger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbt_common/events/logger.py b/dbt_common/events/logger.py index fae4d9b4..460a01dc 100644 --- a/dbt_common/events/logger.py +++ b/dbt_common/events/logger.py @@ -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