Skip to content

Commit

Permalink
Configure env_logger in binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
poszu committed May 16, 2023
1 parent c4ae3b7 commit 4325435
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions initializer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ scrypt-ocl = { path = "../scrypt-ocl" }
rayon = "1.7.0"
eyre = "0.6.8"
rand = "0.8.5"
env_logger = "0.10.0"
1 change: 1 addition & 0 deletions initializer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ fn list_providers() -> eyre::Result<()> {
}

fn main() -> eyre::Result<()> {
env_logger::init();
let args = Cli::parse();

match args
Expand Down
1 change: 1 addition & 0 deletions profiler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ edition = "2021"

[dependencies]
clap = { version = "4.1.11", features = ["derive"] }
env_logger = "0.10.0"
eyre = "0.6.8"
post-rs = { path = "../" }
rayon = "1.7.0"
Expand Down
1 change: 1 addition & 0 deletions profiler/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ fn file_data(path: &Path, size: u64) -> Result<std::fs::File, std::io::Error> {
}

fn main() -> Result<(), Box<dyn Error>> {
env_logger::init();
let args = Args::parse();

let challenge = b"hello world, challenge me!!!!!!!";
Expand Down

0 comments on commit 4325435

Please sign in to comment.