mirror of
https://codeberg.org/icewind/logsmash.git
synced 2026-06-03 18:14:11 +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() {
|
if filter.is_empty() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
self.statements(app)
|
self.statements(app).any(|statement| {
|
||||||
.any(|statement| filter.matches(statement.pattern))
|
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