aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/client.rs
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2022-12-16 18:37:45 +0000
committerGitHub <noreply@github.com>2022-12-16 18:37:45 +0000
commit4c6a287f4d18161ed263bb37905edb2566f81245 (patch)
tree741c34c6fd700788b4d7b29a1b44a95d77cd9819 /src/command/client.rs
parentFix session history (#620) (diff)
downloadatuin-4c6a287f4d18161ed263bb37905edb2566f81245.zip
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 :(
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")?;