mirror of
https://codeberg.org/icewind/logsmash.git
synced 2026-06-03 18:14:11 +02:00
don't store redundant has_meaningfull_message
This commit is contained in:
parent
a0dc7450a4
commit
3af655c17c
4 changed files with 4 additions and 4 deletions
|
|
@ -15,7 +15,9 @@ impl LogMatch {
|
|||
level: statement.level,
|
||||
pattern: Regex::new(statement.regex).unwrap(),
|
||||
pattern_length: statement.regex.len(),
|
||||
has_meaningful_message: statement.has_meaningful_message,
|
||||
has_meaningful_message: statement
|
||||
.regex
|
||||
.contains(|c: char| c.is_ascii_alphanumeric()),
|
||||
exception: statement.exception,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue