From 47c9b85c1a7f43973e049b77532febfeed3ca536 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Mon, 27 Sep 2021 19:59:26 +1000 Subject: [PATCH] Log errors with source chain See anyhow docs for details. --- daemon/src/actors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/src/actors.rs b/daemon/src/actors.rs index 52451d3..ba9846d 100644 --- a/daemon/src/actors.rs +++ b/daemon/src/actors.rs @@ -2,7 +2,7 @@ macro_rules! log_error { ($future:expr) => { if let Err(e) = $future.await { - tracing::error!(%e); + tracing::error!("Message handler failed: {:#}", e); } }; }