This commit is contained in:
桥下红药
2026-01-17 17:25:22 +08:00
parent 4dfb706073
commit 192dad7519
3 changed files with 12 additions and 14 deletions
+1 -2
View File
@@ -13,8 +13,7 @@ async fn main() -> Result<()> {
if std::env::var("RUST_LOG").is_err() {
std::env::set_var("RUST_LOG", "info");
}
// 直接输出到 stdout,避免 _guard 被 drop 导致日志丢失
tracing_subscriber::fmt()
.with_env_filter(EnvFilter::from_default_env())
.with_ansi(true)