From 9d469c353eb179a35fad6d42fa3f6fc985b49188 Mon Sep 17 00:00:00 2001 From: Arne Dußin Date: Wed, 25 Nov 2020 22:24:36 +0100 Subject: Change prints to logs where necessary There were quite a few places, where I hardcoded a print in. Most of these should use the logger instead, so I fixed it. --- src/main.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 6c9a0ec..f669ec6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,13 +42,15 @@ fn main() { */ let config = Config::default(); if err.kind() == io::ErrorKind::NotFound { - println!("Could not find a configuration file. Creating default."); + warn!("Could not find a configuration file. Creating default."); config .write_file(CONFIG_FILE) .expect("Could not write config file."); } else { - println!("Could not read configuration file: {}", err); - println!("Using defaults for this run."); + error!( + "Could not read configuration file: {}\nUsing defaults for this run.", + err + ); } config -- cgit v1.2.3-70-g09d2