mirror of
https://codeberg.org/icewind/logsmash.git
synced 2026-06-03 18:14:11 +02:00
fix unknown level matching
This commit is contained in:
parent
c3ebe018cd
commit
9e95c9834f
1 changed files with 4 additions and 1 deletions
|
|
@ -39,7 +39,10 @@ impl LogLevel {
|
|||
}
|
||||
|
||||
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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue