1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-26 18:37:42 +02:00

workaround env-logger msrv

This commit is contained in:
Rob Ede
2022-12-21 21:17:21 +00:00
parent 7e47bf4055
commit d7afd60606
3 changed files with 9 additions and 3 deletions

View File

@ -41,8 +41,7 @@ use tracing::info;
#[actix_rt::main]
async fn main() -> io::Result<()> {
env::set_var("RUST_LOG", "info");
env_logger::init();
env_logger::init_from_env(env_logger::Env::default().default_filter_or("info"));
// Load TLS key and cert files
let cert_file = &mut BufReader::new(File::open("./examples/cert.pem").unwrap());