feat: add logging for ClashVergeRev version in async setup
This commit is contained in:
@@ -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]"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user