Duplicate::Ignore: do not show ignored matches

move match logging from concepts/filter to daemon/filter
This commit is contained in:
ppom 2025-08-06 12:00:00 +02:00
commit 441d981a20
No known key found for this signature in database
3 changed files with 3 additions and 6 deletions

2
TODO
View file

@ -1,7 +1,5 @@
Test what happens when a Filter's pattern Set changes (I think it's shitty)
move match logging from concepts/filter to daemon/filter
test migration
stream: test regex ending with $
test Filter::regex conformity after setup

View file

@ -9,7 +9,6 @@ use std::{
use chrono::TimeDelta;
use regex::Regex;
use serde::{Deserialize, Serialize};
use tracing::info;
use super::{parse_duration, PatternType};
use super::{Action, Match, Pattern, Patterns};
@ -208,12 +207,10 @@ impl Filter {
}
}
if result.len() == self.patterns.len() {
info!("{}: match {:?}", self, result);
return Some(result);
}
} else {
info!("{}: match []", self);
return Some(vec![".".to_string()]);
return Some(vec![]);
}
}
}

View file

@ -93,6 +93,8 @@ impl FilterManager {
return false;
}
info!("{}: match {:?}", self.filter, &m);
let trigger = match self.filter.retry {
None => true,
Some(retry) => {