diff --git a/src/main.rs b/src/main.rs index 08e02a79..57a8400d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,5 +19,5 @@ fn main() { let logger = ImagLogger::init(&config); let rt = Runtime::new(config); - println!("Hello, world!"); + info!("Hello, world!"); } diff --git a/src/module/mod.rs b/src/module/mod.rs index 8e98d1d2..9fd8b88a 100644 --- a/src/module/mod.rs +++ b/src/module/mod.rs @@ -37,8 +37,7 @@ impl Error for ModuleError { impl Display for ModuleError { fn fmt(&self, f: &mut Formatter) -> FMTResult { - write!(f, "ModuleError: {}", - self.description()) + write!(f, "ModuleError: {}", self.description()) } } diff --git a/src/runtime.rs b/src/runtime.rs index 195cd620..def9a8f7 100644 --- a/src/runtime.rs +++ b/src/runtime.rs @@ -36,6 +36,7 @@ impl ImagLogger { fn init_logger(lvlflt : LogLevelFilter) -> Result<(), SetLoggerError> { log::set_logger(|max_log_lvl| { max_log_lvl.set(lvlflt); + debug!("Init logger with: {}", lvlflt); Box::new(ImagLogger::new(lvlflt.to_log_level().unwrap())) }) }