diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/Cargo.toml | 1 | ||||
-rw-r--r-- | cli/args/flags.rs | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml index fceaeccac..e713a1a64 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -116,6 +116,7 @@ thiserror.workspace = true tokio.workspace = true tokio-util.workspace = true tower-lsp.workspace = true +tracing.workspace = true twox-hash = "=1.6.3" typed-arena = "=2.0.1" uuid = { workspace = true, features = ["serde"] } diff --git a/cli/args/flags.rs b/cli/args/flags.rs index c09d4e7e9..b69f1ce8f 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -796,6 +796,7 @@ pub fn flags_from_vec(args: Vec<String>) -> clap::error::Result<Flags> { flags.log_level = Some(Level::Error); } else if let Some(log_level) = matches.get_one::<String>("log-level") { flags.log_level = match log_level.as_str() { + "trace" => Some(Level::Trace), "debug" => Some(Level::Debug), "info" => Some(Level::Info), _ => unreachable!(), @@ -891,7 +892,7 @@ fn clap_root() -> Command { .long("log-level") .help("Set log level") .hide(true) - .value_parser(["debug", "info"]) + .value_parser(["trace", "debug", "info"]) .global(true), ) .arg( |