From 8360ca3020f07f1971fa31a7c251fe234abcd487 Mon Sep 17 00:00:00 2001 From: Christoph Herzog Date: Tue, 27 Aug 2024 20:27:02 +0200 Subject: [PATCH] feat: Use JJ_LOG instead of RUST_LOG for tracing configuration Prevents name clashes when working on other Rust projects. --- cli/src/cli_util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/cli_util.rs b/cli/src/cli_util.rs index 33aa025d57..e640c2ccfd 100644 --- a/cli/src/cli_util.rs +++ b/cli/src/cli_util.rs @@ -189,7 +189,7 @@ pub struct TracingSubscription { } impl TracingSubscription { - const ENV_VAR_NAME: &str = "JJ_LOG"; + const ENV_VAR_NAME: &'static str = "JJ_LOG"; /// Initializes tracing with the default configuration. This should be /// called as early as possible.