refactor: simplify logging calls by removing unnecessary parameters

This commit is contained in:
Tunglies
2025-10-10 13:46:26 +08:00
Unverified
parent ea319e951c
commit 59dd71ebaa
2 changed files with 1 additions and 11 deletions

View File

@@ -199,13 +199,7 @@ async fn reinstall_service() -> Result<()> {
// 先卸载服务
if let Err(err) = uninstall_service().await {
logging!(
warn,
Type::Service,
true,
"failed to uninstall service: {}",
err
);
logging!(warn, Type::Service, "failed to uninstall service: {}", err);
}
// 再安装服务

View File

@@ -281,7 +281,6 @@ pub fn run() {
logging!(
info,
Type::Setup,
true,
"Wayland + {} detected: Re-enabled WebKit DMABUF renderer to avoid Cairo surface failures.",
compositor_label
);
@@ -289,7 +288,6 @@ pub fn run() {
logging!(
info,
Type::Setup,
true,
"Wayland + {} detected: Using native Wayland backend for reliable rendering.",
compositor_label
);
@@ -310,7 +308,6 @@ pub fn run() {
logging!(
info,
Type::Setup,
true,
"Wayland detected: Forcing X11 backend for tray icon compatibility"
);
}
@@ -323,7 +320,6 @@ pub fn run() {
logging!(
info,
Type::Setup,
true,
"KDE detected: Disabled GTK CSD for better titlebar stability."
);
}