Skip to content

Commit

Permalink
Do not set RUST_LOG on logger setup
Browse files Browse the repository at this point in the history
Signed-off-by: Eloi DEMOLIS <eloi.demolis@clever-cloud.com>
  • Loading branch information
Wonshtrum committed Dec 7, 2023
1 parent e21aa93 commit 582ab5b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions command/src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,6 @@ pub fn setup_logging(
if let Ok(env_log_level) = env::var("RUST_LOG") {
Logger::init(tag.to_string(), &env_log_level, backend, access_backend);
} else {
// We set the env variable so every worker can access it
env::set_var("RUST_LOG", log_level);
Logger::init(tag.to_string(), log_level, backend, access_backend);
}
}
Expand Down

0 comments on commit 582ab5b

Please sign in to comment.