diff --git a/Cargo.toml b/Cargo.toml index e75513b..330098f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wintun-bindings" -version = "0.7.10" +version = "0.7.11" edition = "2021" authors = [ "ssrlive", diff --git a/examples/basic-async.rs b/examples/basic-async.rs index 15e8c1d..76e4288 100644 --- a/examples/basic-async.rs +++ b/examples/basic-async.rs @@ -10,7 +10,7 @@ static RUNNING: AtomicBool = AtomicBool::new(true); #[tokio::main] async fn main() -> Result<(), BoxError> { dotenvy::dotenv().ok(); - env_logger::init(); + env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("trace")).init(); let dll_path = get_wintun_bin_pattern_path()?; let wintun = unsafe { load_from_path(dll_path)? }; diff --git a/examples/basic.rs b/examples/basic.rs index d56357f..5cb1f35 100644 --- a/examples/basic.rs +++ b/examples/basic.rs @@ -4,7 +4,7 @@ static RUNNING: AtomicBool = AtomicBool::new(true); fn main() -> Result<(), wintun_bindings::BoxError> { dotenvy::dotenv().ok(); - env_logger::init(); + env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("trace")).init(); let dll_path = wintun_bindings::get_wintun_bin_pattern_path()?; let wintun = unsafe { wintun_bindings::load_from_path(dll_path)? }; diff --git a/examples/udp-echo-async.rs b/examples/udp-echo-async.rs index 21ca11b..1a53d6c 100644 --- a/examples/udp-echo-async.rs +++ b/examples/udp-echo-async.rs @@ -50,7 +50,7 @@ impl std::fmt::Display for NaiveUdpPacket { #[tokio::main] async fn main() -> Result<(), BoxError> { dotenvy::dotenv().ok(); - env_logger::init(); + env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("trace")).init(); // Loading wintun let dll_path = get_wintun_bin_pattern_path()?; let wintun = unsafe { load_from_path(dll_path)? }; diff --git a/examples/udp-echo.rs b/examples/udp-echo.rs index 2e290c4..85952ec 100644 --- a/examples/udp-echo.rs +++ b/examples/udp-echo.rs @@ -50,7 +50,7 @@ impl std::fmt::Display for NaiveUdpPacket { fn main() -> Result<(), BoxError> { dotenvy::dotenv().ok(); - env_logger::init(); + env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("trace")).init(); // Loading wintun let dll_path = get_wintun_bin_pattern_path()?; let wintun = unsafe { load_from_path(dll_path)? }; diff --git a/examples/wireshark.rs b/examples/wireshark.rs index 1b2fa7e..7be66da 100644 --- a/examples/wireshark.rs +++ b/examples/wireshark.rs @@ -64,7 +64,7 @@ impl RouteCmd { fn main() -> Result<(), BoxError> { dotenvy::dotenv().ok(); - env_logger::init(); + env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("trace")).init(); let dll_path = get_wintun_bin_pattern_path()?; let wintun = unsafe { wintun_bindings::load_from_path(dll_path)? };