fix(logging): adjust conditional compilation for NoModuleFilter based on tracing-full feature

This commit is contained in:
Tunglies
2025-12-11 08:03:32 +08:00
parent 7838fa1e75
commit 623ed69a37
2 changed files with 3 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ tauri-dev = ["clash-verge-logging/tauri-dev"]
tokio-trace = ["console-subscriber"]
clippy = ["tauri/test"]
tracing = []
tracing-full = []
[package.metadata.bundle]
identifier = "io.github.clash-verge-rev.clash-verge-rev"

View File

@@ -12,7 +12,7 @@ use crate::{
};
use anyhow::Result;
use chrono::{Local, TimeZone as _};
#[cfg(not(feature = "tauri-dev"))]
#[cfg(all(not(feature = "tauri-dev"), not(feature = "tracing-full")))]
use clash_verge_logging::NoModuleFilter;
use clash_verge_logging::Type;
use clash_verge_service_ipc::WriterConfig;
@@ -65,7 +65,7 @@ pub async fn init_logger() -> Result<LoggerHandle> {
},
Cleanup::KeepLogFiles(log_max_count),
);
#[cfg(not(feature = "tracing"))]
#[cfg(all(not(feature = "tracing"), not(feature = "tracing-full")))]
let logger = logger.filter(Box::new(NoModuleFilter(&[
"wry",
"tauri",