aboutsummaryrefslogtreecommitdiffstats
path: root/crates/client/src/command/client.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-08-22 21:18:02 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-08-22 21:18:02 +0200
commitc9ea93f0b415dc3ea8c86ec0f5c5862c7b593a00 (patch)
tree9b5a9d3b48ecacb2deecf47358f931e1db497a8a /crates/client/src/command/client.rs
parentcrates/turtle/list: Restore the history listing code from atuin (diff)
downloadatuin-c9ea93f0b415dc3ea8c86ec0f5c5862c7b593a00.zip
treewide: Fix most `cargo check` warnings
The remaining ones, require actual work to resolve.
Diffstat (limited to 'crates/client/src/command/client.rs')
-rw-r--r--crates/client/src/command/client.rs15
1 files changed, 12 insertions, 3 deletions
diff --git a/crates/client/src/command/client.rs b/crates/client/src/command/client.rs
index 60329500..0ecb4573 100644
--- a/crates/client/src/command/client.rs
+++ b/crates/client/src/command/client.rs
@@ -30,9 +30,6 @@ pub(crate) enum Cmd {
/// Request a sync or view sync status
Sync(sync::Cmd),
- // /// Manage the atuin data store
- // #[command(subcommand)]
- // Store(store::Cmd),
/// Information about dotfiles locations and ENV vars
#[command()]
Info,
@@ -78,6 +75,18 @@ impl Cmd {
let base_filter =
EnvFilter::from_env("ATUIN_LOG").add_directive("sqlx_sqlite::regexp=off".parse()?);
+ if env_log_set
+ && let Err(e) = tracing_subscriber::fmt()
+ .with_file(true)
+ .with_line_number(true)
+ .with_level(true)
+ .without_time()
+ .with_env_filter(base_filter)
+ .try_init()
+ {
+ eprintln!("failed to initialize logging: {e}");
+ }
+
tracing::trace!(command = ?self, "client command");
// Skip initializing any databases for history