Fix error logging (#29010)

Co-Authored-By: Ben <ben@zed.dev>

Release Notes:

- N/A

Co-authored-by: Ben <ben@zed.dev>
This commit is contained in:
Conrad Irwin 2025-04-17 18:58:54 -06:00 committed by GitHub
parent 6ffd3f034f
commit f6d13645ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,7 +51,7 @@ pub fn init_env_filter(filter: env_config::EnvFilter) {
}
pub fn is_possibly_enabled_level(level: log::Level) -> bool {
return LEVEL_ENABLED_MAX_CONFIG.load(Ordering::Relaxed) <= level as u8;
return level as u8 <= LEVEL_ENABLED_MAX_CONFIG.load(Ordering::Relaxed);
}
pub fn is_scope_enabled(scope: &Scope, level: log::Level) -> bool {