examples: Use tracing macros instead of println!

This allows the examples to work a bit better in WASM and on iOS.
This commit is contained in:
Mads Marquart
2026-03-17 05:45:03 +01:00
parent 91558169d2
commit 9f789e56ee
14 changed files with 44 additions and 37 deletions

View File

@@ -79,6 +79,10 @@ impl EventHandler {
// Allowed, happens if the handler was cleared manually
// elsewhere (such as in `applicationWillTerminate:`).
},
// We use `eprintln!` here over `tracing::error!`, since we're going to abort
// immediately after this, and it'd be annoying for the user if they didn't get
// any feedback on that if they don't have a tracing subscriber.
#[allow(clippy::disallowed_macros)]
Err(_) => {
// Note: This is not expected to ever happen, this
// module generally controls the `RefCell`, and