Skip to content

Commit 39744df

Browse files
authored
simulator: Fix Failed to initialize dependency logging (#7393)
The simulator works but always emits the following message: ``` $ cargo run --release --bin simulator basic-sim ... ... Failed to initialize dependency logging: attempted to set a logger after the logging system was already initialized ... ... ``` This PR removes the initialization with `env_logger`. (Update) With #7433 merged, the libp2p/discv5 logs are saved in separate files and respect the `RUST_LOG` env var for log level configuration.
1 parent 4d21846 commit 39744df

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

Cargo.lock

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

testing/simulator/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ edition = { workspace = true }
77

88
[dependencies]
99
clap = { workspace = true }
10-
env_logger = { workspace = true }
1110
environment = { workspace = true }
12-
eth2_network_config = { workspace = true }
1311
execution_layer = { workspace = true }
1412
futures = { workspace = true }
1513
kzg = { workspace = true }

testing/simulator/src/main.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,12 @@ mod local_network;
1818
mod retry;
1919

2020
use cli::cli_app;
21-
use env_logger::{Builder, Env};
2221
use local_network::LocalNetwork;
2322
use types::MinimalEthSpec;
2423

2524
pub type E = MinimalEthSpec;
2625

2726
fn main() {
28-
// Debugging output for libp2p and external crates.
29-
Builder::from_env(Env::default()).init();
30-
3127
let matches = cli_app().get_matches();
3228
match matches.subcommand_name() {
3329
Some("basic-sim") => match basic_sim::run_basic_sim(&matches) {

0 commit comments

Comments
 (0)