From 7b61e426d7d5a46f5c6dc9349da79550fca83ca0 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Mon, 1 Jul 2024 16:25:48 +0200 Subject: [PATCH] eframe web: map `log::debug` to `console.debug`; not `console.trace` --- crates/eframe/src/web/web_logger.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/eframe/src/web/web_logger.rs b/crates/eframe/src/web/web_logger.rs index 18936495581..8c43701608a 100644 --- a/crates/eframe/src/web/web_logger.rs +++ b/crates/eframe/src/web/web_logger.rs @@ -50,7 +50,9 @@ impl log::Log for WebLogger { }; match record.level() { - log::Level::Trace => console::trace(&msg), + // NOTE: the `console::trace` includes a stack trace, which is super-noisy. + log::Level::Trace => console::debug(&msg), + log::Level::Debug => console::debug(&msg), log::Level::Info => console::info(&msg), log::Level::Warn => console::warn(&msg),