mirror of
https://codeberg.org/icewind/logsmash.git
synced 2026-06-03 10:04:12 +02:00
also filter matches by path and placeholders
This commit is contained in:
parent
89bf0a5de6
commit
f0e87de7df
1 changed files with 6 additions and 2 deletions
|
|
@ -79,8 +79,12 @@ impl LogMatch {
|
|||
if filter.is_empty() {
|
||||
return true;
|
||||
}
|
||||
self.statements(app)
|
||||
.any(|statement| filter.matches(statement.pattern))
|
||||
self.statements(app).any(|statement| {
|
||||
filter.matches(statement.pattern)
|
||||
|| filter.matches(statement.path)
|
||||
|| filter.matches(statement.path_prefix)
|
||||
|| statement.placeholders.iter().any(|placeholder| filter.matches(placeholder))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue