mirror of
https://github.com/actix/examples
synced 2024-11-23 22:41:07 +01:00
Replace env_logger
's deprecated function (#391)
This commit is contained in:
parent
89d2e4e3f7
commit
47d4067498
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user