diff --git a/.changes/unreleased/Features-20241105-093150.yaml b/.changes/unreleased/Features-20241105-093150.yaml new file mode 100644 index 0000000..6425776 --- /dev/null +++ b/.changes/unreleased/Features-20241105-093150.yaml @@ -0,0 +1,6 @@ +kind: Features +body: Include JSON and text output in quiet mode for `dbt show` and `dbt compile` +time: 2024-11-05T09:31:50.780898-06:00 +custom: + Author: dbeatty10 + Issue: "216" diff --git a/dbt_common/events/logger.py b/dbt_common/events/logger.py index fae4d9b..460a01d 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