1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-26 18:37:42 +02:00

chore: update env logger

This commit is contained in:
Rob Ede
2024-05-12 19:10:27 +01:00
parent 9e7d612121
commit 1db640f62e
6 changed files with 9 additions and 12 deletions

View File

@ -41,7 +41,8 @@ use tracing::info;
#[actix_rt::main]
async fn main() -> io::Result<()> {
env_logger::init_from_env(env_logger::Env::default().default_filter_or("info"));
pretty_env_logger::formatted_timed_builder()
.parse_env(pretty_env_logger::env_logger::Env::default().default_filter_or("info"));
let root_path = env!("CARGO_MANIFEST_DIR")
.parse::<PathBuf>()