diff --git a/crates/egui_demo_app/src/web.rs b/crates/egui_demo_app/src/web.rs index ce06399b27f..8c64f30142e 100644 --- a/crates/egui_demo_app/src/web.rs +++ b/crates/egui_demo_app/src/web.rs @@ -18,7 +18,12 @@ impl WebHandle { #[wasm_bindgen(constructor)] pub fn new() -> Self { // Redirect [`log`] message to `console.log` and friends: - eframe::WebLogger::init(log::LevelFilter::Debug).ok(); + let log_level = if cfg!(debug_assertions) { + log::LevelFilter::Trace + } else { + log::LevelFilter::Debug + }; + eframe::WebLogger::init(log_level).ok(); Self { runner: eframe::WebRunner::new(),