diff --git a/inboard/logging_conf.py b/inboard/logging_conf.py index fa359fb..c9a41b7 100644 --- a/inboard/logging_conf.py +++ b/inboard/logging_conf.py @@ -82,7 +82,7 @@ def filter(self, record: logging.LogRecord) -> bool: if self.filters is None: return True message = record.getMessage() - return not any(match in message for match in self.filters) + return all(match not in message for match in self.filters) @staticmethod def set_filters(input_filters: Optional[str] = None) -> Optional[Set[str]]: