mirror of
https://github.com/4cuck/nitter-status.git
synced 2026-10-27 00:57:39 +00:00
less verbose release run
This commit is contained in:
1 parent
30d26f2590
commit
aea0e3059e
1 file changed
+9
-2
+9
-2
@@ -38,11 +38,18 @@ async fn _main() -> miette::Result<()> {
|
||||
tracing_subscriber::registry()
|
||||
.with(tracing_subscriber::EnvFilter::new(
|
||||
var("RUST_LOG").unwrap_or_else(|_| {
|
||||
format!(
|
||||
#[cfg(debug_assertions)]
|
||||
return format!(
|
||||
"warn,tower_http=debug,migration=debug,scanner=trace,server=debug,{}=debug",
|
||||
env!("CARGO_PKG_NAME")
|
||||
)
|
||||
.into()
|
||||
.into();
|
||||
#[cfg(not(debug_assertions))]
|
||||
return format!(
|
||||
"warn,tower_http=debug,migration=debug,scanner=info,server=info,{}=debug",
|
||||
env!("CARGO_PKG_NAME")
|
||||
)
|
||||
.into();
|
||||
}),
|
||||
))
|
||||
.with(tracing_subscriber::fmt::layer())
|
||||
|
||||
Reference in new issue
Block a user