Skip to content

Commit a81281e

Browse files
committed
logger: don't panic in the panic handler
Signed-off-by: Alejandro Martinez Ruiz <[email protected]>
1 parent d159da4 commit a81281e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/logger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub(crate) fn set_log_level(level: LogLevel) {
2626
if !INITIALIZED.load(Ordering::Relaxed) {
2727
log::set_logger(&LOGGER).unwrap();
2828
panic::set_hook(Box::new(|panic_info| {
29-
hostcalls::log(LogLevel::Critical, &panic_info.to_string()).unwrap();
29+
let _ = hostcalls::log(LogLevel::Critical, &panic_info.to_string());
3030
}));
3131
INITIALIZED.store(true, Ordering::Relaxed);
3232
}

0 commit comments

Comments
 (0)