Skip to content

Commit

Permalink
turn on debug logs by default, remove deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
divagant-martian committed Dec 13, 2023
1 parent f6c4d27 commit c222b36
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lighthouse/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,14 +365,9 @@ fn main() {
}
}

// Debugging output for discv5, libp2p and external crates.
if matches.is_present("env_log") {
eprintln!("The -l flag is DEPRECATED. Dependency logging will be on by default.");
}

// read the `RUST_LOG` statement
let filter_layer = match tracing_subscriber::EnvFilter::try_from_default_env()
.or_else(|_| tracing_subscriber::EnvFilter::try_new("warn"))
.or_else(|_| tracing_subscriber::EnvFilter::try_new("debug"))
{
Ok(filter) => filter,
Err(e) => {
Expand Down

0 comments on commit c222b36

Please sign in to comment.