From 3c4cb56ce62bdd2a8c2511d06932c650632daefa Mon Sep 17 00:00:00 2001 From: Cooper Quintin Date: Thu, 29 May 2025 15:45:25 -0700 Subject: [PATCH] surpress error messages by default, fixes #347 --- installer/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer/src/main.rs b/installer/src/main.rs index a29a33b..ef332dc 100644 --- a/installer/src/main.rs +++ b/installer/src/main.rs @@ -1,5 +1,6 @@ use anyhow::{Context, Error, bail}; use clap::{Parser, Subcommand}; +use env_logger::Env; mod orbic; mod tplink; @@ -68,7 +69,7 @@ struct Serial { } async fn run() -> Result<(), Error> { - env_logger::init(); + env_logger::Builder::from_env(Env::default().default_filter_or("off")).init(); let Args { command } = Args::parse(); match command {