From 989df7a31e9508fedf697b7ef551ef48527c47da Mon Sep 17 00:00:00 2001 From: mirnawong1 Date: Thu, 1 Feb 2024 17:10:51 +0000 Subject: [PATCH 1/3] update dbt list info level logs --- website/docs/reference/global-configs/logs.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/website/docs/reference/global-configs/logs.md b/website/docs/reference/global-configs/logs.md index ddfe67444c1..d482065cc7c 100644 --- a/website/docs/reference/global-configs/logs.md +++ b/website/docs/reference/global-configs/logs.md @@ -118,9 +118,22 @@ Supply the `-q` or `--quiet` flag to `dbt run` to show only error logs and suppr ```text dbt --quiet run ... - ``` +### dbt list logging + +In [dbt version 1.5](/docs/dbt-versions/core-upgrade/upgrading-to-v1.5#behavior-changes), there have been changes to the logging behavior of the [dbt list](/reference/commands/list) command. In version 1.5, the default behavior has been updated, and it now includes `INFO` level logs by default + +Previously, the list command (and only the list command) had `WARN`-level stdout logging, to support piping its results to [`jq`](https://jqlang.github.io/jq/manual/), a file, or another process. + +To achieve that goal, you can use either of the following parameters: + +- `dbt --log-level warn list` (recommended; equivalent to previous default) +- `dbt --quiet list` (suppresses all logging less than ERROR level, except for "printed" messages and list output) + +By using `--log-level warn list` or `--quiet list`, you ensure that the output is clean and compatible with downstream processes. + + ### Logging relational cache events The `LOG_CACHE_EVENTS` config allows detailed logging for [relational cache](reference/global-configs/cache) events, which are disabled by default. From 8315bc432e241aec74cf5f463c72efc6ed392da6 Mon Sep 17 00:00:00 2001 From: "Leona B. Campbell" <3880403+runleonarun@users.noreply.github.com> Date: Thu, 1 Feb 2024 17:00:57 -0800 Subject: [PATCH 2/3] Apply suggestions from code review --- website/docs/reference/global-configs/logs.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/website/docs/reference/global-configs/logs.md b/website/docs/reference/global-configs/logs.md index d482065cc7c..1e7b631726c 100644 --- a/website/docs/reference/global-configs/logs.md +++ b/website/docs/reference/global-configs/logs.md @@ -122,16 +122,14 @@ dbt --quiet run ### dbt list logging -In [dbt version 1.5](/docs/dbt-versions/core-upgrade/upgrading-to-v1.5#behavior-changes), there have been changes to the logging behavior of the [dbt list](/reference/commands/list) command. In version 1.5, the default behavior has been updated, and it now includes `INFO` level logs by default +In [dbt version 1.5](/docs/dbt-versions/core-upgrade/upgrading-to-v1.5#behavior-changes), we updated the logging behavior of the [dbt list](/reference/commands/list) command to include `INFO` level logs by default. -Previously, the list command (and only the list command) had `WARN`-level stdout logging, to support piping its results to [`jq`](https://jqlang.github.io/jq/manual/), a file, or another process. -To achieve that goal, you can use either of the following parameters: +You can use either of these parameters to ensure clean output that's compatible with downstream processes, such as piping results to [`jq`](https://jqlang.github.io/jq/manual/), a file, or another process: - `dbt --log-level warn list` (recommended; equivalent to previous default) - `dbt --quiet list` (suppresses all logging less than ERROR level, except for "printed" messages and list output) -By using `--log-level warn list` or `--quiet list`, you ensure that the output is clean and compatible with downstream processes. ### Logging relational cache events From d6a65ee0e8a9f529fe2e6cfe943f1b018e682a02 Mon Sep 17 00:00:00 2001 From: "Leona B. Campbell" <3880403+runleonarun@users.noreply.github.com> Date: Thu, 1 Feb 2024 17:01:22 -0800 Subject: [PATCH 3/3] Update website/docs/reference/global-configs/logs.md --- website/docs/reference/global-configs/logs.md | 1 - 1 file changed, 1 deletion(-) diff --git a/website/docs/reference/global-configs/logs.md b/website/docs/reference/global-configs/logs.md index 1e7b631726c..69dd57b1db4 100644 --- a/website/docs/reference/global-configs/logs.md +++ b/website/docs/reference/global-configs/logs.md @@ -131,7 +131,6 @@ You can use either of these parameters to ensure clean output that's compatible - `dbt --quiet list` (suppresses all logging less than ERROR level, except for "printed" messages and list output) - ### Logging relational cache events The `LOG_CACHE_EVENTS` config allows detailed logging for [relational cache](reference/global-configs/cache) events, which are disabled by default.