ready_queue: improve debug logging for deliver_message error case

This commit is contained in:
Wez Furlong
2023-08-16 19:40:51 -07:00
parent f48af29093
commit 2a8397d6ff
+5 -1
View File
@@ -756,7 +756,11 @@ impl Dispatcher {
.await
{
// Transient failure; continue with another host
tracing::debug!("failed to send message to {}: {err:#}", self.name,);
tracing::debug!(
"failed to send message id {:?} to {}: {err:#}",
self.msg.as_ref().map(|msg| format!("{}", msg.id())),
self.name,
);
return Err(err.into());
}