From ddbfe76932f4cf5bc1c70d1461d670625752c0f0 Mon Sep 17 00:00:00 2001 From: Luna Yao <40349250+ZnqbuZ@users.noreply.github.com> Date: Mon, 6 Apr 2026 15:55:05 +0200 Subject: [PATCH] log: test log --- easytier/Cargo.toml | 2 +- easytier/src/common/log.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/easytier/Cargo.toml b/easytier/Cargo.toml index d80ae481..c9556148 100644 --- a/easytier/Cargo.toml +++ b/easytier/Cargo.toml @@ -350,8 +350,8 @@ thunk-rs = { git = "https://github.com/easytier/thunk.git", default-features = f serial_test = "3.0.0" rstest = "0.25.0" futures-util = "0.3.31" -maplit = "1.0.2" tempfile = "3.22.0" +ctor = "0.8.0" [target.'cfg(target_os = "linux")'.dev-dependencies] defguard_wireguard_rs = "0.4.2" diff --git a/easytier/src/common/log.rs b/easytier/src/common/log.rs index 2d0dc067..96524629 100644 --- a/easytier/src/common/log.rs +++ b/easytier/src/common/log.rs @@ -277,6 +277,7 @@ pub mod tests { use super::*; use crate::common::config::{self}; + #[ctor::ctor] pub fn init() { let _ = Registry::default() .with(console_layers(LevelFilter::DEBUG).unwrap())