Skip to content

Commit

Permalink
Refactor #49 with Sourcery (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcery-ai[bot] authored Apr 2, 2022
1 parent 32792cd commit fba2fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inboard/logging_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]:
Expand Down

0 comments on commit fba2fd2

Please sign in to comment.