Print error while panicing
This commit is contained in:
parent
2b7706424a
commit
d3d6e830d7
1 changed files with 1 additions and 3 deletions
|
@ -310,9 +310,7 @@ impl<'a> Runtime<'a> {
|
|||
debug!("Init logger with {}", lvl);
|
||||
Box::new(ImagLogger::new(lvl.to_log_level().unwrap()).with_color(colored))
|
||||
})
|
||||
.map_err(|_| {
|
||||
panic!("Could not setup logger");
|
||||
})
|
||||
.map_err(|e| panic!("Could not setup logger: {:?}", e))
|
||||
.ok();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue