aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 833c821..1dac51d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -17,7 +17,7 @@ use std::process::exit;
fn main() {
if let Err(error) = run() {
- println!("Main error: {}", error);
+ error!("Error: {}", error);
exit(1);
}
}
@@ -37,6 +37,7 @@ fn run() -> WgResult<()> {
_ => LogLevel::Trace,
};
+ // Init the logging
match mowl::init_with_level(log_level) {
Err(_) => warn!("Log level already set"),
Ok(_) => warn!("Log level set to: {}", log_level),