summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-07-17 13:33:08 +0200
committerHampusM <hampus@hampusmat.com>2026-07-17 13:33:08 +0200
commit029d32a5fed35ebc0e99a2e94a5f483d2670c6a0 (patch)
tree65d8d1740cf82dc273f7c8a4ea43deb8865b2579
parent755405a094487af72d5029c56fb3bb1b1bf98f7a (diff)
feat(engine): add error traces to error logs in windowing mod
-rw-r--r--engine/src/windowing.rs9
1 files 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)
);
};
}