mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 08:45:41 +08:00
refactor: simplify logging calls by removing unnecessary parameters
This commit is contained in:
@@ -199,13 +199,7 @@ async fn reinstall_service() -> Result<()> {
|
|||||||
|
|
||||||
// 先卸载服务
|
// 先卸载服务
|
||||||
if let Err(err) = uninstall_service().await {
|
if let Err(err) = uninstall_service().await {
|
||||||
logging!(
|
logging!(warn, Type::Service, "failed to uninstall service: {}", err);
|
||||||
warn,
|
|
||||||
Type::Service,
|
|
||||||
true,
|
|
||||||
"failed to uninstall service: {}",
|
|
||||||
err
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 再安装服务
|
// 再安装服务
|
||||||
|
|||||||
@@ -281,7 +281,6 @@ pub fn run() {
|
|||||||
logging!(
|
logging!(
|
||||||
info,
|
info,
|
||||||
Type::Setup,
|
Type::Setup,
|
||||||
true,
|
|
||||||
"Wayland + {} detected: Re-enabled WebKit DMABUF renderer to avoid Cairo surface failures.",
|
"Wayland + {} detected: Re-enabled WebKit DMABUF renderer to avoid Cairo surface failures.",
|
||||||
compositor_label
|
compositor_label
|
||||||
);
|
);
|
||||||
@@ -289,7 +288,6 @@ pub fn run() {
|
|||||||
logging!(
|
logging!(
|
||||||
info,
|
info,
|
||||||
Type::Setup,
|
Type::Setup,
|
||||||
true,
|
|
||||||
"Wayland + {} detected: Using native Wayland backend for reliable rendering.",
|
"Wayland + {} detected: Using native Wayland backend for reliable rendering.",
|
||||||
compositor_label
|
compositor_label
|
||||||
);
|
);
|
||||||
@@ -310,7 +308,6 @@ pub fn run() {
|
|||||||
logging!(
|
logging!(
|
||||||
info,
|
info,
|
||||||
Type::Setup,
|
Type::Setup,
|
||||||
true,
|
|
||||||
"Wayland detected: Forcing X11 backend for tray icon compatibility"
|
"Wayland detected: Forcing X11 backend for tray icon compatibility"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -323,7 +320,6 @@ pub fn run() {
|
|||||||
logging!(
|
logging!(
|
||||||
info,
|
info,
|
||||||
Type::Setup,
|
Type::Setup,
|
||||||
true,
|
|
||||||
"KDE detected: Disabled GTK CSD for better titlebar stability."
|
"KDE detected: Disabled GTK CSD for better titlebar stability."
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user