Skip to content

Commit da38ba9

Browse files
committed
chore: fix env_logger
1 parent b9f4ff1 commit da38ba9

File tree

1 file changed

+1
-1
lines changed
  • crates/pop-parachains/src/bench

1 file changed

+1
-1
lines changed

crates/pop-parachains/src/bench/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ pub fn generate_benchmarks(args: Vec<String>) -> anyhow::Result<()> {
105105
pub async fn generate_overhead_benchmarks(cmd: OverheadCmd) -> anyhow::Result<()> {
106106
tokio::task::spawn_blocking(move || {
107107
std::env::set_var("RUST_LOG", "info");
108-
env_logger::init();
108+
let _ = env_logger::try_init();
109109
cmd.run_with_default_builder_and_spec::<OpaqueBlock, HostFunctions>(None)
110110
.map_err(|e| anyhow::anyhow!(format!("Failed to run benchmarking: {}", e)))
111111
})

0 commit comments

Comments
 (0)