From e3c8b5edcac00bdd9b3d757055fc8e21bf0af9f5 Mon Sep 17 00:00:00 2001 From: Daniel Saxton <2658661+dsaxton@users.noreply.github.com> Date: Sat, 1 Jan 2022 16:05:37 -0600 Subject: [PATCH] Update logger example (#250) --- examples/middleware/src/logger.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/middleware/src/logger.rs b/examples/middleware/src/logger.rs index 8f70d9c..c764710 100644 --- a/examples/middleware/src/logger.rs +++ b/examples/middleware/src/logger.rs @@ -6,7 +6,7 @@ use env_logger::Env; async fn main() -> std::io::Result<()> { use actix_web::{App, HttpServer}; - env_logger::from_env(Env::default().default_filter_or("info")).init(); + env_logger::init_from_env(Env::default().default_filter_or("info")); HttpServer::new(|| { App::new()