mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 08:45:41 +08:00
feat: add logging for ClashVergeRev version in async setup
This commit is contained in:
@@ -29,6 +29,7 @@ pub enum Type {
|
|||||||
ProxyMode,
|
ProxyMode,
|
||||||
Ipc,
|
Ipc,
|
||||||
// Cache,
|
// Cache,
|
||||||
|
ClashVergeRev,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl fmt::Display for Type {
|
impl fmt::Display for Type {
|
||||||
@@ -51,6 +52,7 @@ impl fmt::Display for Type {
|
|||||||
Type::ProxyMode => write!(f, "[ProxMode]"),
|
Type::ProxyMode => write!(f, "[ProxMode]"),
|
||||||
Type::Ipc => write!(f, "[IPC]"),
|
Type::Ipc => write!(f, "[IPC]"),
|
||||||
// Type::Cache => write!(f, "[Cache]"),
|
// Type::Cache => write!(f, "[Cache]"),
|
||||||
|
Type::ClashVergeRev => write!(f, "[ClashVergeRev]"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,6 +42,13 @@ pub fn resolve_setup_async() {
|
|||||||
AsyncHandler::spawn(|| async {
|
AsyncHandler::spawn(|| async {
|
||||||
#[cfg(not(feature = "tauri-dev"))]
|
#[cfg(not(feature = "tauri-dev"))]
|
||||||
resolve_setup_logger().await;
|
resolve_setup_logger().await;
|
||||||
|
logging!(
|
||||||
|
info,
|
||||||
|
Type::ClashVergeRev,
|
||||||
|
true,
|
||||||
|
"Version: {}",
|
||||||
|
env!("CARGO_PKG_VERSION")
|
||||||
|
);
|
||||||
init_service_manager().await;
|
init_service_manager().await;
|
||||||
|
|
||||||
futures::join!(
|
futures::join!(
|
||||||
|
|||||||
Reference in New Issue
Block a user