We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 205a958 commit 474e13cCopy full SHA for 474e13c
python_logging_filters/__init__.py
@@ -33,8 +33,9 @@ class DjangoHttp404LogFilter(logging.Filter):
33
PATTERN = re.compile("^Not Found:")
34
35
def filter(self, record: logging.LogRecord) -> bool:
36
- return (
+ is_not_found_record = (
37
self.PATTERN.fullmatch(record.msg) is not None
38
and record.levelno == logging.WARNING
39
and record.name.startswith("django")
40
)
41
+ return not is_not_found_record
setup.py
@@ -2,7 +2,7 @@
2
3
setup(
4
name="python-logging-filters",
5
- version="0.1.3",
+ version="0.1.4",
6
description="standard python logging filters",
7
long_description=open("README.md").read(),
8
long_description_content_type="text/markdown",
0 commit comments