From 1937a8d2b7c38d7ed44d6e5077e31833ca0903c4 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Sun, 26 Sep 2021 10:47:26 +0200 Subject: [PATCH] =?utf8?q?serde:=20Show=20=E2=89=A5=20info=20logs=20by=20d?= =?utf8?q?efault?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- serde/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serde/src/main.rs b/serde/src/main.rs index fc88d23..cdc7c81 100644 --- a/serde/src/main.rs +++ b/serde/src/main.rs @@ -44,9 +44,9 @@ fn load_contacts() -> Result> { } fn main() -> Result<(), Box> { - env_logger::init(); + env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info")).init(); create_contacts()?; let contacts = load_contacts()?; - println!("deserialized: {:?}", &contacts); + log::info!("deserialized: {:?}", &contacts); Ok(()) } -- 2.39.5