diff options
| author | Arne Dußin | 2020-11-25 22:24:36 +0100 |
|---|---|---|
| committer | Arne Dußin | 2020-11-25 22:24:36 +0100 |
| commit | 9d469c353eb179a35fad6d42fa3f6fc985b49188 (patch) | |
| tree | d3ead8ed47d31d3345973dfd296b79b81b8e8de4 /src/main.rs | |
| parent | da19f0174b99db02e50d2f1db8aae6245d7981ca (diff) | |
| download | graf_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.rs | 8 |
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 |
