diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-24 17:56:36 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-24 17:56:36 +0200 |
| commit | 9cdc575666faad4c162f4b4cf519bfdd1fd528dc (patch) | |
| tree | 9287963ad11e237ca74edbd54161c03f3309927b /crates/client/src/main.rs | |
| parent | chore: Last big refactoring (diff) | |
| download | atuin-9cdc575666faad4c162f4b4cf519bfdd1fd528dc.zip | |
feat: Finalize design for fish-shell integration
Diffstat (limited to '')
| -rw-r--r-- | crates/client/src/main.rs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/crates/client/src/main.rs b/crates/client/src/main.rs index 05f328e2..4ec97cef 100644 --- a/crates/client/src/main.rs +++ b/crates/client/src/main.rs @@ -11,6 +11,7 @@ use clap::builder::styling::{AnsiColor, Effects}; use eyre::Result; use command::AtuinCmd; +use tracing_subscriber::EnvFilter; use tracing_subscriber::util::SubscriberInitExt; mod command; @@ -60,7 +61,18 @@ impl Atuin { } fn main() -> Result<()> { - if let Err(e) = tracing_subscriber::registry().try_init() { + if let Err(e) = tracing_subscriber::fmt() + .with_file(true) + .with_line_number(true) + .with_level(true) + .without_time() + .with_env_filter( + EnvFilter::builder() + .from_env_lossy() + .add_directive("turtle=debug".parse().unwrap()), + ) + .try_init() + { eprintln!("failed to initialize logging: {e}"); } |
