From 2b9ab6e1f536f6fb831bfb74428bbb4e10f521e3 Mon Sep 17 00:00:00 2001 From: Ron Waldon-Howe Date: Mon, 9 Dec 2024 21:29:18 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8A=20=20Use=20the=20"tracing"=20crate?= =?UTF-8?q?=20for=20logs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bin/busd.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/busd.rs b/src/bin/busd.rs index bcc593f..b2ebe3b 100644 --- a/src/bin/busd.rs +++ b/src/bin/busd.rs @@ -66,7 +66,7 @@ async fn main() -> Result<()> { } else { PathBuf::from("/usr/share/dbus-1/session.conf") }; - eprintln!("reading configuration file {} ...", config_path.display()); + info!("reading configuration file {} ...", config_path.display()); let config = Config::read_file(&config_path)?; let address = if let Some(address) = args.address { @@ -86,7 +86,7 @@ async fn main() -> Result<()> { } if args.print_address { - println!("{}", bus.address()); + info!("{}", bus.address()); } // FIXME: How to handle this gracefully on Windows?