refactor logviewer
This commit is contained in:
parent
7ea9d84228
commit
79639be9da
9 changed files with 425 additions and 239 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue