fix: update the default logging level of external crates to warn

This commit is contained in:
Jun Kurihara 2024-11-05 19:49:21 +09:00
commit 1a199396c0
No known key found for this signature in database
GPG key ID: D992B3E3DE1DED23

View file

@ -21,7 +21,7 @@ pub fn init_logger() {
.target() .target()
.starts_with(env!("CARGO_PKG_NAME").replace('-', "_").as_str()) .starts_with(env!("CARGO_PKG_NAME").replace('-', "_").as_str())
&& metadata.level() <= &level) && metadata.level() <= &level)
|| metadata.level() <= &tracing::Level::ERROR.min(level) || metadata.level() <= &tracing::Level::WARN.min(level)
})); }));
tracing_subscriber::registry().with(stdio_layer).init(); tracing_subscriber::registry().with(stdio_layer).init();
} else { } else {