Print error while panicing

This commit is contained in:
Matthias Beyer 2017-06-03 14:43:02 +02:00
parent 2b7706424a
commit d3d6e830d7

View file

@ -310,9 +310,7 @@ impl<'a> Runtime<'a> {
debug!("Init logger with {}", lvl); debug!("Init logger with {}", lvl);
Box::new(ImagLogger::new(lvl.to_log_level().unwrap()).with_color(colored)) Box::new(ImagLogger::new(lvl.to_log_level().unwrap()).with_color(colored))
}) })
.map_err(|_| { .map_err(|e| panic!("Could not setup logger: {:?}", e))
panic!("Could not setup logger");
})
.ok(); .ok();
} }
} }