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 {
|
||||
logging!(
|
||||
warn,
|
||||
Type::Service,
|
||||
true,
|
||||
"failed to uninstall service: {}",
|
||||
err
|
||||
);
|
||||
logging!(warn, Type::Service, "failed to uninstall service: {}", err);
|
||||
}
|
||||
|
||||
// 再安装服务
|
||||
|
||||
@@ -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."
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user