Skip to content

Commit

Permalink
chore: Update dependencies and log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
cauliyang committed Nov 1, 2023
1 parent eaf1428 commit dee6602
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ codegen-units = 1
anyhow = { version = "1.0" }
clap = { version = "4.4.7", features = ["wrap_help", "derive", "color"] }
clap-verbosity-flag = "2.1.0"
colored = "2"
env_logger = "0.10"
human-panic = "1.2.1"
indicatif = "0.17"
log = "0.4"
colored = "2"

noodles-bam = "0.49.0"
noodles-bgzf = "0.25"
Expand Down
9 changes: 5 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use clap::{Parser, Subcommand};
use env_logger::Builder;
use human_panic::setup_panic;
use log::info;
use log::LevelFilter;
use std::path::PathBuf;

Expand Down Expand Up @@ -41,11 +42,11 @@ fn main() {

match cli.verbose.log_level() {
Some(level) => {
println!("Verbose mode is on with level {}!", level);
info!("Verbose mode is on with level {}!", level);
log_builder.filter(None, level.to_level_filter());
}
None => {
println!("Verbose mode is off!");
info!("Verbose mode is off!");
log_builder.filter(None, LevelFilter::Off);
}
}
Expand All @@ -59,11 +60,11 @@ fn main() {
input,
isbam,
}) => {
println!("'extract' {readids:?} from {input:?} ");
info!("'extract' {readids:?} from {input:?} ");
extract::extract(readids, input, *isbam).unwrap();
}

// If no subcommand was used, it's a normal top level command
None => println!("No subcommand was used"),
None => info!("No subcommand was used"),
}
}

0 comments on commit dee6602

Please sign in to comment.