Skip to content

Commit

Permalink
eframe web: map log::debug to console.debug; not console.trace
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jul 1, 2024
1 parent f3a0ac1 commit 7b61e42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/eframe/src/web/web_logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 7b61e42

Please sign in to comment.