Skip to content

Commit

Permalink
Maintain default log level info
Browse files Browse the repository at this point in the history
  • Loading branch information
alexheretic committed Feb 14, 2024
1 parent 93e39d2 commit bd83c6b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@ const PARALLEL_METADATA_FETCHES: usize = 6;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
let subscriber = tracing_subscriber::fmt()
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env());
let subscriber = tracing_subscriber::fmt().with_env_filter(
tracing_subscriber::EnvFilter::builder()
.with_default_directive(tracing::level_filters::LevelFilter::INFO.into())
.from_env_lossy(),
);
#[cfg(debug_assertions)]
let subscriber = subscriber.pretty();
subscriber.init();
Expand Down

0 comments on commit bd83c6b

Please sign in to comment.