mirror of
https://github.com/actix/actix-website
synced 2024-12-18 01:43:59 +01:00
Update logger example (#250)
This commit is contained in:
parent
2c3f06d33d
commit
e3c8b5edca
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user