immunant / c2rust

Migrate C code to Rust
https://c2rust.com/
Other
3.91k stars 229 forks source link

(`c2rust-analyze`) Fix bleeding of `RUST_LOG` into `RUST_LOG_PANIC`'s logger #932

Closed kkysen closed 1 year ago

kkysen commented 1 year ago

Fixes #931.

Use env_logger::Builder::from_env instead of env_logger::builder().parse_env, as the latter first reads from the default env (RUST_LOG) and thus reads RUST_LOG for RUST_LOG_PANIC.