mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
virtio-devices: block: Use Display when logging Error
block::Error implements Display via thiserror, so the user facing log lines do not need the Debug formatter. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
committed by
Rob Bradford
parent
14dfd78f04
commit
26ed2a98bc
@@ -391,12 +391,12 @@ impl BlockEpollHandler {
|
||||
// Surface the failure so the worker exits and spawn_virtio_thread
|
||||
// marks the device as NEEDS_RESET.
|
||||
return Err(EpollHelperError::HandleEvent(anyhow!(
|
||||
"Failed to process queue (submit): {e:?}"
|
||||
"Failed to process queue (submit): {e}"
|
||||
)));
|
||||
}
|
||||
Err(e) => {
|
||||
// Per-request errors are logged but non-device fatal.
|
||||
warn!("Failed to process queue (submit): {e:?}");
|
||||
warn!("Failed to process queue (submit): {e}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user