Fix several bugs causing warning spam in the console (#4547)

This commit is contained in:
Keavon Chambers
2026-09-17 00:51:42 -07:00
committed by GitHub
parent 3f1351e3b9
commit cb30348215
4 changed files with 74 additions and 8 deletions
+6
View File
@@ -173,6 +173,12 @@ pub struct WasmLog;
impl log::Log for WasmLog {
#[inline]
fn enabled(&self, metadata: &log::Metadata) -> bool {
// Dependencies that log routine rendering details at the debug level are capped so they don't flood the console
let crate_name = metadata.target().split("::").next().unwrap_or_default();
if crate_name.starts_with("vello") {
return metadata.level() <= log::Level::Info;
}
metadata.level() <= log::max_level()
}