Skip to content

Commit

Permalink
update dbt list info level logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 committed Feb 1, 2024
1 parent 33cf3aa commit 989df7a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion website/docs/reference/global-configs/logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 989df7a

Please sign in to comment.