refactor logviewer

This commit is contained in:
Jana Dönszelmann 2026-02-25 11:34:30 +01:00
parent 7ea9d84228
commit 79639be9da
No known key found for this signature in database
9 changed files with 425 additions and 239 deletions

View file

@ -46,7 +46,7 @@ impl Matcher {
.all_fields()
.fields
.get(name)
.is_some_and(|v| value.matches(&pretty_print_value(&v))),
.is_some_and(|v| value.matches(v)),
Matcher::Message { value } => {
entry.message_or_name().is_some_and(|v| value.matches(&v))
}
@ -59,7 +59,7 @@ impl Matcher {
let value = lv.footer_fields().get(lv.footer_list.selected?)?.clone();
Some(Self::Field {
name: value.0,
value: MatcherValue::from_field_matcher(fm?, Some(value.1.to_string()))?,
value: MatcherValue::from_field_matcher(fm?, Some(value.1))?,
})
}
InputTarget::Text(fm) => Some(Self::Message {