From b2fb3c7735272ef3630dce589d011aa4038f6caf Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Sat, 2 Apr 2022 19:43:15 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- inboard/logging_conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]]: