Default log level to info.

This commit is contained in:
redxef 2024-01-22 13:12:44 +01:00
parent 7a680e09a3
commit 2a41cdd72d
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -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;