Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
nical committed Jul 24, 2024
1 parent 212ffc3 commit b8676ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wgpu-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,10 @@ pub(crate) use api_log;

pub(crate) fn api_log_enabled() -> bool {
#[cfg(feature = "api_log_info")]
return log::STATIC_MAX_LEVEL <= log::Level::Info && log::max_level() <= log::Level::Info;
return log::STATIC_MAX_LEVEL >= log::Level::Info && log::max_level() >= log::Level::Info;

#[cfg(not(feature = "api_log_info"))]
return log::STATIC_MAX_LEVEL <= log::Level::Trace && log::max_level() <= log::Level::Trace;
return log::STATIC_MAX_LEVEL >= log::Level::Trace && log::max_level() >= log::Level::Trace;
}

#[cfg(feature = "resource_log_info")]
Expand Down

0 comments on commit b8676ba

Please sign in to comment.