refactor: simplify logging calls by removing unnecessary parameters

This commit is contained in:
Tunglies
2025-10-10 13:46:26 +08:00
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 { 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
);
} }
// 再安装服务 // 再安装服务

View File

@@ -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."
); );
} }