Skip to content

Commit

Permalink
feat: Use tracing feature from clap-verbosity-flag (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw authored Feb 27, 2025
1 parent 92afbe7 commit 547535f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ rustls-tls = [
[dependencies]
anyhow = "1.0.96"
clap = { version = "4.5.30", features = ["derive", "string"] }
clap-verbosity-flag = "3.0.2"
clap-verbosity-flag = { version = "3.0.2", features = ["tracing"] }
futures = "0.3.31"
indicatif = "0.17.11"
rattler = { version = "0.28.7", default-features = false }
Expand All @@ -51,7 +51,6 @@ tracing-subscriber = { version = "0.3.19", features = [
"default",
"env-filter",
] }
tracing-log = "0.2.0"
url = "2.5.4"
fxhash = "0.2.1"
tempfile = "3.17.1"
Expand Down
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use pixi_pack::{
PIXI_PACK_VERSION,
};
use rattler_shell::shell::ShellEnum;
use tracing_log::AsTrace;

/* -------------------------------------------- CLI -------------------------------------------- */

Expand Down Expand Up @@ -114,7 +113,7 @@ async fn main() -> Result<()> {
let cli = Cli::parse();

tracing_subscriber::FmtSubscriber::builder()
.with_max_level(cli.verbose.log_level_filter().as_trace())
.with_max_level(cli.verbose)
.init();

tracing::debug!("Starting pixi-pack CLI");
Expand Down

0 comments on commit 547535f

Please sign in to comment.