1
0
mirror of https://github.com/actix/actix-website synced 2024-11-27 18:12:57 +01: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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ use env_logger::Env;
async fn main() -> std::io::Result<()> { async fn main() -> std::io::Result<()> {
use actix_web::{App, HttpServer}; 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(|| { HttpServer::new(|| {
App::new() App::new()