From a73ef5ad356228446d4dc1d40092e4cd915b0faf Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Tue, 4 Feb 2025 16:13:45 -0800 Subject: [PATCH] Add `$GHCIWATCH_LOG` for `--log-filter` --- src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.rs b/src/cli.rs index 4d76eea..c840944 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -215,7 +215,7 @@ pub struct LoggingOpts { /// A nice value is `ghciwatch=debug`. /// /// [1]: https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html - #[arg(long, default_value = "ghciwatch=info")] + #[arg(long, env = "GHCIWATCH_LOG", default_value = "ghciwatch=info")] pub log_filter: String, /// How to display backtraces in error messages.