example: Fix tracing registration in pump_events

Tracing subscribers must be set up before `EventLoop::new()`.
This commit is contained in:
Mads Marquart
2026-02-17 22:42:04 +01:00
parent 4998cb990f
commit 91558169d2

View File

@@ -51,10 +51,10 @@ fn main() -> std::process::ExitCode {
}
}
let mut event_loop = EventLoop::new().unwrap();
tracing_subscriber::fmt::init();
let mut event_loop = EventLoop::new().unwrap();
let mut app = PumpDemo::default();
loop {