This commit is contained in:
lelgenio 2024-06-22 13:45:41 -03:00
parent d0a7e7ec88
commit 761288fb81
2 changed files with 3 additions and 2 deletions

View file

@ -54,7 +54,8 @@ pub async fn run(config: Config) -> Result<RunningServer> {
pub fn setup_tracing() {
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
let log_filter = std::env::var("WARTHUNDER_LOG").unwrap_or_else(|_| "warthunder_leak_counter=debug,warn".into());
let log_filter = std::env::var("WARTHUNDER_LOG")
.unwrap_or_else(|_| "warthunder_leak_counter=debug,warn".into());
eprintln!("RUST_LOG: {log_filter}");

View file

@ -1,4 +1,4 @@
use std::{str::FromStr};
use std::str::FromStr;
use super::Source;
use anyhow::{bail, Context, Result};