Skip to content

Commit

Permalink
set up logging
Browse files Browse the repository at this point in the history
  • Loading branch information
lquenti committed Feb 22, 2024
1 parent 04325c7 commit 3aece39
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 0 additions & 3 deletions blackheap-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,3 @@ name = "blackheap-core"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
2 changes: 2 additions & 0 deletions blackheap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ clap = { version = "4.5", features = ["derive"] }
human-panic = "1.2"
libc = "0.2"
thiserror = "1.0"
tracing = "0.1"
tracing-subscriber = "0.3"
uuid = { version = "1.7", features = ["v4", "fast-rng"] }
6 changes: 5 additions & 1 deletion blackheap/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
use crate::cli::Cli;

use tracing::info;

use clap::Parser;

mod cli;


fn main() {
human_panic::setup_panic!();
let cli = Cli::parse();
tracing_subscriber::fmt::init();

info!("Parsing and validating CLI");
let cli = Cli::parse();
if let Err(e) = cli::validate_cli(&cli) {
println!("{:?}", e);
}
Expand Down

0 comments on commit 3aece39

Please sign in to comment.