Refactor logging macros to remove print control parameter

- Updated logging macros to eliminate the boolean parameter for print control, simplifying the logging calls throughout the codebase.
- Adjusted all logging calls in various modules (lib.rs, lightweight.rs, help.rs, init.rs, logging.rs, resolve/mod.rs, resolve/scheme.rs, resolve/ui.rs, resolve/window.rs, server.rs, singleton.rs, window_manager.rs) to reflect the new macro structure.
- Ensured consistent logging behavior across the application by standardizing the logging format.
This commit is contained in:
Tunglies
2025-10-10 13:05:37 +08:00
parent a4d94c8bc9
commit 8c0af66ca9
33 changed files with 292 additions and 706 deletions
-5
View File
@@ -418,7 +418,6 @@ impl Handle {
logging!(
info,
Type::Frontend,
true,
"启动过程中发现错误,加入消息队列: {} - {}",
status_str,
msg_str
@@ -468,7 +467,6 @@ impl Handle {
logging!(
info,
Type::Frontend,
true,
"发送{}条启动时累积的错误消息: {:?}",
errors.len(),
errors
@@ -536,7 +534,6 @@ impl Handle {
logging!(
warn,
Type::Setup,
true,
"Failed to set regular activation policy: {}",
e
);
@@ -548,7 +545,6 @@ impl Handle {
logging!(
warn,
Type::Setup,
true,
"Failed to set accessory activation policy: {}",
e
);
@@ -561,7 +557,6 @@ impl Handle {
logging!(
warn,
Type::Setup,
true,
"Failed to set prohibited activation policy: {}",
e
);