mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-04-18 00:11:08 +08:00
chore: don't record websocket logs
This commit is contained in:
parent
4fb8611e55
commit
20cb3e49fd
@ -68,11 +68,18 @@ pub async fn init_logger() -> Result<()> {
|
|||||||
Cleanup::KeepLogFiles(log_max_count),
|
Cleanup::KeepLogFiles(log_max_count),
|
||||||
);
|
);
|
||||||
#[cfg(not(feature = "tracing"))]
|
#[cfg(not(feature = "tracing"))]
|
||||||
let logger = logger.filter(Box::new(NoModuleFilter(&["wry", "tauri"])));
|
let logger = logger.filter(Box::new(NoModuleFilter(&[
|
||||||
|
"wry",
|
||||||
|
"tauri",
|
||||||
|
"tokio_tungstenite",
|
||||||
|
"tungstenite",
|
||||||
|
])));
|
||||||
#[cfg(feature = "tracing")]
|
#[cfg(feature = "tracing")]
|
||||||
let logger = logger.filter(Box::new(NoModuleFilter(&[
|
let logger = logger.filter(Box::new(NoModuleFilter(&[
|
||||||
"wry",
|
"wry",
|
||||||
"tauri_plugin_mihomo",
|
"tauri_plugin_mihomo",
|
||||||
|
"tokio_tungstenite",
|
||||||
|
"tungstenite",
|
||||||
"kode_bridge",
|
"kode_bridge",
|
||||||
])));
|
])));
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user