don't overwrite RUST_LOG if it exists
This commit is contained in:
parent
e56cf130fe
commit
8a86739f14
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ fn main() -> Result<(), std::io::Error> {
|
|||
let addr = matches.value_of("addr").unwrap();
|
||||
let bind_addr = format!("{}:{}", addr, port);
|
||||
|
||||
std::env::set_var("RUST_LOG", "info");
|
||||
std::env::set_var("RUST_LOG", std::env::var("RUST_LOG").unwrap_or("info".to_string()));
|
||||
env_logger::init();
|
||||
|
||||
let root = std::path::Path::new(&chdir);
|
||||
|
|
Loading…
Add table
Reference in a new issue