aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
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 {