From 9f6ed3cec3dd4424f6eb23890057439c48227714 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Thu, 16 Dec 2021 11:46:28 -0600 Subject: [PATCH] update log message to use adapter name (#4501) * update log message to use adapter name * add changelog --- CHANGELOG.md | 1 + core/dbt/task/runnable.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20977ea2206..182a161316b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Fix wrong url in the dbt docs overview homepage ([#4442](https://github.com/dbt-labs/dbt-core/pull/4442)) - Fix redefined status param of SQLQueryStatus to typecheck the string which passes on `._message` value of `AdapterResponse` or the `str` value sent by adapter plugin. ([#4463](https://github.com/dbt-labs/dbt-core/pull/4463#issuecomment-990174166)) - Fix `DepsStartPackageInstall` event to use package name instead of version number. ([#4482](https://github.com/dbt-labs/dbt-core/pull/4482)) +- Reimplement log message to use adapter name instead of the object method. ([#4501](https://github.com/dbt-labs/dbt-core/pull/4501)) ### Docs - Fix missing data on exposures in docs ([#4467](https://github.com/dbt-labs/dbt-core/issues/4467)) diff --git a/core/dbt/task/runnable.py b/core/dbt/task/runnable.py index 38fc2a3c144..8e3a0945f3b 100644 --- a/core/dbt/task/runnable.py +++ b/core/dbt/task/runnable.py @@ -359,7 +359,7 @@ def _cancel_connections(self, pool): adapter = get_adapter(self.config) if not adapter.is_cancelable(): - fire_event(QueryCancelationUnsupported(type=adapter.type)) + fire_event(QueryCancelationUnsupported(type=adapter.type())) else: with adapter.connection_named('master'): for conn_name in adapter.cancel_open_connections():