feat: add logging for ClashVergeRev version in async setup

This commit is contained in:
Tunglies
2025-09-20 23:24:43 +08:00
Unverified
parent 2366530622
commit 94ec25c193
2 changed files with 9 additions and 0 deletions

View File

@@ -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]"),
}
}
}

View File

@@ -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!(