diff --git a/josh-core/src/lib.rs b/josh-core/src/lib.rs index e79bd504..6ca5f06b 100644 --- a/josh-core/src/lib.rs +++ b/josh-core/src/lib.rs @@ -155,9 +155,9 @@ where T: std::error::Error, { fn from(item: T) -> Self { - tracing::event!(tracing::Level::ERROR, item = ?item, error = true); - log::error!("JoshError: {:?}", item); let bt = backtrace::Backtrace::new(); + tracing::event!(tracing::Level::ERROR, item = ?item, backtrace = format!("{:?}", bt), error = true); + log::error!("JoshError: {:?}", item); log::error!("Backtrace: {:?}", bt); josh_error(&format!("converted {:?}", item)) }