aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-05-20 13:36:45 +0200
committerAlex Auvolat <alex@adnab.me>2022-05-20 13:36:45 +0200
commita6e33aafea89ba86ac94bbc33a503f1ef5644828 (patch)
treeb0a9a9eeaa33da1c1e840721c4849b2364471d96 /src/main.rs
parent3ac6896da966da3a73610cbe00c550e7ce4c0616 (diff)
downloadaerogramme-a6e33aafea89ba86ac94bbc33a503f1ef5644828.tar.gz
aerogramme-a6e33aafea89ba86ac94bbc33a503f1ef5644828.zip
Fix things
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index dcdd335..a2630d6 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -92,6 +92,11 @@ struct StorageCredsArgs {
#[tokio::main]
async fn main() -> Result<()> {
+ if std::env::var("RUST_LOG").is_err() {
+ std::env::set_var("RUST_LOG", "mailrage=info,k2v_client=info")
+ }
+ pretty_env_logger::init();
+
let args = Args::parse();
match args.command {