diff options
| author | Ellie Huxtable <ellie@elliehuxtable.com> | 2022-12-16 18:37:45 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-16 18:37:45 +0000 |
| commit | 4c6a287f4d18161ed263bb37905edb2566f81245 (patch) | |
| tree | 741c34c6fd700788b4d7b29a1b44a95d77cd9819 /src/command/client.rs | |
| parent | Fix session history (#620) (diff) | |
| download | atuin-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 '')
| -rw-r--r-- | src/command/client.rs | 6 |
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")?; |
