From 4c6a287f4d18161ed263bb37905edb2566f81245 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Fri, 16 Dec 2022 18:37:45 +0000 Subject: Switch to using ATUIN_LOG instead of RUST_LOG (#642) * Switch to using ATUIN_LOG instead of RUST_LOG * Stop clippy complaining * I should know better - clippy is never happy :( --- src/command/client.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/command/client.rs') 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")?; -- cgit v1.3.1