1
0
mirror of https://github.com/actix/actix-website synced 2025-06-27 15:39:02 +02:00

Update logger example (#250)

This commit is contained in:
Daniel Saxton
2022-01-01 16:05:37 -06:00
committed by GitHub
parent 2c3f06d33d
commit e3c8b5edca

View File

@ -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()