aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/client.rs')
-rw-r--r--src/command/client.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/command/client.rs b/src/command/client.rs
index f7b9d6fb..df74ac52 100644
--- a/src/command/client.rs
+++ b/src/command/client.rs
@@ -4,6 +4,7 @@ use clap::Subcommand;
use eyre::{Result, WrapErr};
use atuin_client::{database::Sqlite, settings::Settings};
+use env_logger::Builder;
#[cfg(feature = "sync")]
mod sync;
@@ -38,7 +39,10 @@ pub enum Cmd {
impl Cmd {
#[tokio::main(flavor = "current_thread")]
pub async fn run(self) -> Result<()> {
- pretty_env_logger::init();
+ Builder::new()
+ .filter_level(log::LevelFilter::Off)
+ .parse_env("ATUIN_LOG")
+ .init();
let settings = Settings::new().wrap_err("could not load client settings")?;