aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorArne Dußin2020-11-25 22:24:36 +0100
committerArne Dußin2020-11-25 22:24:36 +0100
commit9d469c353eb179a35fad6d42fa3f6fc985b49188 (patch)
treed3ead8ed47d31d3345973dfd296b79b81b8e8de4 /src/main.rs
parentda19f0174b99db02e50d2f1db8aae6245d7981ca (diff)
downloadgraf_karto-9d469c353eb179a35fad6d42fa3f6fc985b49188.tar.gz
graf_karto-9d469c353eb179a35fad6d42fa3f6fc985b49188.zip
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.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 5 insertions, 3 deletions
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