From e09735a3c2f7c015333271f38e35112469452b6f Mon Sep 17 00:00:00 2001 From: Rostyslav Tyshko Date: Fri, 18 Apr 2025 08:14:31 -0400 Subject: [PATCH] fix rust_log --- sequencer_runner/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sequencer_runner/src/lib.rs b/sequencer_runner/src/lib.rs index 6c3e214..f0a6fd8 100644 --- a/sequencer_runner/src/lib.rs +++ b/sequencer_runner/src/lib.rs @@ -10,6 +10,8 @@ use tokio::sync::Mutex; pub mod config; +pub const RUST_LOG: &str = "RUST_LOG"; + #[derive(Parser, Debug)] #[clap(version)] struct Args { @@ -29,7 +31,7 @@ pub async fn main_runner() -> Result<()> { if let Some(ref rust_log) = app_config.override_rust_log { info!("RUST_LOG env var set to {rust_log:?}"); - std::env::set_var("RUST_LOG", rust_log); + std::env::set_var(RUST_LOG, rust_log); } env_logger::init();