eframe web: map `log::debug` to `console.debug`; not `console.trace`

This commit is contained in:
Emil Ernerfeldt 2024-07-01 16:25:48 +02:00
parent f3a0ac1d1b
commit 7b61e426d7
1 changed files with 3 additions and 1 deletions

View File

@ -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),