fix unknown level matching

This commit is contained in:
Robin Appelman 2025-06-17 23:32:54 +02:00
commit 9e95c9834f

View file

@ -39,7 +39,10 @@ impl LogLevel {
} }
pub fn matches(&self, matcher_level: LogLevel) -> bool { pub fn matches(&self, matcher_level: LogLevel) -> bool {
matcher_level == *self || matcher_level == LogLevel::Exception || *self == LogLevel::Unknown matcher_level == *self
|| matcher_level == LogLevel::Exception
|| *self == LogLevel::Unknown
|| matcher_level == LogLevel::Unknown
} }
pub fn as_str(&self) -> &'static str { pub fn as_str(&self) -> &'static str {