Skip to content

Commit

Permalink
Postpone logger initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
xnuter committed Feb 22, 2021
1 parent a91ebd1 commit a411b1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perf-gauge"
version = "0.1.4"
version = "0.1.5"
authors = ["Eugene Retunsky"]
license = "MIT OR Apache-2.0"
edition = "2018"
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ use tokio::io;

#[tokio::main]
async fn main() -> io::Result<()> {
init_logger();

let mut benchmark_config = BenchmarkConfig::from_command_line().map_err(|e| {
println!("Failed to process parameters. Exiting.");
e
})?;

init_logger();

info!("Starting with configuration {}", benchmark_config);

let (reporter_task, batch_metric_sender) =
Expand Down

0 comments on commit a411b1d

Please sign in to comment.