mirror of
https://framagit.org/ppom/reaction
synced 2026-03-14 12:45:47 +01:00
Duplicate::Ignore: do not show ignored matches
move match logging from concepts/filter to daemon/filter
This commit is contained in:
parent
f36464299a
commit
441d981a20
3 changed files with 3 additions and 6 deletions
2
TODO
2
TODO
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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![]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -93,6 +93,8 @@ impl FilterManager {
|
|||
return false;
|
||||
}
|
||||
|
||||
info!("{}: match {:?}", self.filter, &m);
|
||||
|
||||
let trigger = match self.filter.retry {
|
||||
None => true,
|
||||
Some(retry) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue