diff --git a/src-tauri/src/utils/logging.rs b/src-tauri/src/utils/logging.rs index 33341b8b..c89d6872 100644 --- a/src-tauri/src/utils/logging.rs +++ b/src-tauri/src/utils/logging.rs @@ -29,6 +29,7 @@ pub enum Type { ProxyMode, Ipc, // Cache, + ClashVergeRev, } impl fmt::Display for Type { @@ -51,6 +52,7 @@ impl fmt::Display for Type { Type::ProxyMode => write!(f, "[ProxMode]"), Type::Ipc => write!(f, "[IPC]"), // Type::Cache => write!(f, "[Cache]"), + Type::ClashVergeRev => write!(f, "[ClashVergeRev]"), } } } diff --git a/src-tauri/src/utils/resolve/mod.rs b/src-tauri/src/utils/resolve/mod.rs index da1c6a35..1bee81fd 100644 --- a/src-tauri/src/utils/resolve/mod.rs +++ b/src-tauri/src/utils/resolve/mod.rs @@ -42,6 +42,13 @@ pub fn resolve_setup_async() { AsyncHandler::spawn(|| async { #[cfg(not(feature = "tauri-dev"))] resolve_setup_logger().await; + logging!( + info, + Type::ClashVergeRev, + true, + "Version: {}", + env!("CARGO_PKG_VERSION") + ); init_service_manager().await; futures::join!(