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:
parent
6ffd3f034f
commit
f6d13645ce
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue