feat: allow setting misc.log_filters in config.toml (#552)

Allow setting `log_filters` in `config.toml`

This allows setting a list of `log_filters` in the `[misc]` section in
the `config.toml`. These filters are prepended to any filters listed
with `--log-filters`. Finally, `--verbose` can now be used with
`--log-filters`, and it will append `debug` to the list of filters
rather than replacing it entirely.
This commit is contained in:
Rebecca Turner
2023-09-17 03:04:46 -04:00
committed by GitHub
parent 06a6b7a2eb
commit c1c9fe22df
3 changed files with 21 additions and 10 deletions

View File

@@ -60,6 +60,11 @@
# Extra Home Manager arguments
#home_manager_arguments = ["--flake", "file"]
# Extra tracing filter directives
# These are prepended to the `--log-filter` argument
# See: https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives
#log_filters = ["topgrade::command=debug", "warn"]
# Commands to run before anything
[pre_commands]
#"Emacs Snapshot" = "rm -rf ~/.emacs.d/elpa.bak && cp -rl ~/.emacs.d/elpa ~/.emacs.d/elpa.bak"