From 029d32a5fed35ebc0e99a2e94a5f483d2670c6a0 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 17 Jul 2026 13:33:08 +0200 Subject: feat(engine): add error traces to error logs in windowing mod --- engine/src/windowing.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/engine/src/windowing.rs b/engine/src/windowing.rs index adc5132..6997f73 100644 --- a/engine/src/windowing.rs +++ b/engine/src/windowing.rs @@ -518,7 +518,7 @@ impl Context }; }) { - tracing::error!("Failed to create windowing app thread: {err}"); + tracing::error!("Failed to create windowing app thread: {:#}", crate::Error::new(err)); return Self { shared_state, @@ -569,7 +569,7 @@ impl Context unreachable!(); }; - tracing::error!("Error in windowing app thread: {err}"); + tracing::error!("Error in windowing app thread: {:#}", crate::Error::new(err)); } else { tracing::error!("Windowing app initialization aborted unexpectedly"); } @@ -728,7 +728,7 @@ impl App ) { Ok(window) => window, Err(err) => { - tracing::error!("Failed to create window: {err}"); + tracing::error!("Failed to create window: {:#}", crate::Error::new(err)); continue; } }, @@ -953,7 +953,8 @@ impl ApplicationHandler for App cold_path(); tracing::error!( window_id=?window_id, - "Failed to lock cursor position: {err}" + "Failed to lock cursor position: {:#}", + crate::Error::new(err) ); }; } -- cgit v1.2.3-18-g5258