From c785f320eae9d2789cd2441de3b5a9c8b255fc24 Mon Sep 17 00:00:00 2001 From: Peter Webb Date: Wed, 22 Feb 2023 14:19:10 -0500 Subject: [PATCH] CT-2160: Fix logbook (legacy logging) regression (#7029) * CT-2160: Fix logbook (legacy logging) regression * CT-2160: Changelog entry --- .changes/unreleased/Fixes-20230222-133304.yaml | 6 ++++++ core/dbt/events/functions.py | 1 + 2 files changed, 7 insertions(+) create mode 100644 .changes/unreleased/Fixes-20230222-133304.yaml diff --git a/.changes/unreleased/Fixes-20230222-133304.yaml b/.changes/unreleased/Fixes-20230222-133304.yaml new file mode 100644 index 00000000000..45e0a68a298 --- /dev/null +++ b/.changes/unreleased/Fixes-20230222-133304.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: Fix regression in logbook log output +time: 2023-02-22T13:33:04.017149-05:00 +custom: + Author: peterallenwebb + Issue: "7028" diff --git a/core/dbt/events/functions.py b/core/dbt/events/functions.py index cd4887f4fc3..8a20dd2be80 100644 --- a/core/dbt/events/functions.py +++ b/core/dbt/events/functions.py @@ -102,6 +102,7 @@ def _get_logbook_log_config(level: Optional[EventLevel] = None) -> LoggerConfig: config.name = "logbook_log" config.filter = NoFilter if flags.LOG_CACHE_EVENTS else lambda e: not isinstance(e.data, Cache) config.logger = GLOBAL_LOGGER + config.output_stream = None return config