1
0
mirror of https://github.com/actix/examples synced 2024-11-27 16:02:57 +01:00

Replace env_logger's deprecated function (#391)

This commit is contained in:
Yuki Okushi 2020-12-16 02:06:11 +09:00 committed by GitHub
parent 89d2e4e3f7
commit 47d4067498
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,8 @@ async fn chat_route(
#[actix_web::main]
async fn main() -> std::io::Result<()> {
env_logger::from_env(env_logger::Env::default().default_filter_or("info")).init();
env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info"))
.init();
let addr = "127.0.0.1:8080";