Default log level to info.
This commit is contained in:
parent
7a680e09a3
commit
2a41cdd72d
1 changed files with 3 additions and 0 deletions
|
@ -303,6 +303,9 @@ const BUILD_INFO: &str = include!(concat!(env!("OUT_DIR"), "/buildinfo.txt"));
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn 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");
|
env_logger::init_from_env("WGVIRTIPD_LOG");
|
||||||
let args = CliArguments::parse();
|
let args = CliArguments::parse();
|
||||||
let config = wg::Wg::from_file(&args.link).await;
|
let config = wg::Wg::from_file(&args.link).await;
|
||||||
|
|
Loading…
Reference in a new issue