From 2a41cdd72dce7647d1f3d7391ffb76ce9231fe83 Mon Sep 17 00:00:00 2001 From: redxef Date: Mon, 22 Jan 2024 13:12:44 +0100 Subject: [PATCH] Default log level to info. --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index a189d55..67ba3cb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -303,6 +303,9 @@ const BUILD_INFO: &str = include!(concat!(env!("OUT_DIR"), "/buildinfo.txt")); #[tokio::main] async fn main() { + if std::env::var("WGVIRTIPD_LOG").is_err() { + std::env::set_var("WGVIRTIPD_LOG", "wgvirtipd=info"); + } env_logger::init_from_env("WGVIRTIPD_LOG"); let args = CliArguments::parse(); let config = wg::Wg::from_file(&args.link).await;