Suppress log blade_graphics -related logs by default (#31881)
Release Notes: - N/A
This commit is contained in:
parent
22d75b798e
commit
8fb7fa941a
1 changed files with 5 additions and 5 deletions
|
@ -39,9 +39,9 @@ pub static LEVEL_ENABLED_MAX_CONFIG: AtomicU8 = AtomicU8::new(LEVEL_ENABLED_MAX_
|
||||||
const DEFAULT_FILTERS: &[(&str, log::LevelFilter)] = &[
|
const DEFAULT_FILTERS: &[(&str, log::LevelFilter)] = &[
|
||||||
#[cfg(any(target_os = "linux", target_os = "freebsd"))]
|
#[cfg(any(target_os = "linux", target_os = "freebsd"))]
|
||||||
("zbus", log::LevelFilter::Off),
|
("zbus", log::LevelFilter::Off),
|
||||||
#[cfg(any(target_os = "linux", target_os = "freebsd"))]
|
#[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "windows"))]
|
||||||
("blade_graphics::hal::resource", log::LevelFilter::Off),
|
("blade_graphics", log::LevelFilter::Off),
|
||||||
#[cfg(any(target_os = "linux", target_os = "freebsd"))]
|
#[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "windows"))]
|
||||||
("naga::back::spv::writer", log::LevelFilter::Off),
|
("naga::back::spv::writer", log::LevelFilter::Off),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -166,14 +166,14 @@ fn scope_alloc_from_scope_str(scope_str: &str) -> Option<ScopeAlloc> {
|
||||||
return Some(scope);
|
return Some(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(PartialEq, Eq)]
|
#[derive(Debug, PartialEq, Eq)]
|
||||||
pub struct ScopeMap {
|
pub struct ScopeMap {
|
||||||
entries: Vec<ScopeMapEntry>,
|
entries: Vec<ScopeMapEntry>,
|
||||||
modules: Vec<(String, log::LevelFilter)>,
|
modules: Vec<(String, log::LevelFilter)>,
|
||||||
root_count: usize,
|
root_count: usize,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(PartialEq, Eq)]
|
#[derive(Debug, PartialEq, Eq)]
|
||||||
pub struct ScopeMapEntry {
|
pub struct ScopeMapEntry {
|
||||||
scope: String,
|
scope: String,
|
||||||
enabled: Option<log::LevelFilter>,
|
enabled: Option<log::LevelFilter>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue