MaM Web user
3 years ago
1 changed files with 6 additions and 0 deletions
@ -0,0 +1,6 @@ |
|||||
|
from logging import Filter, INFO |
||||
|
class Http404AsInfoFilter(Filter): |
||||
|
def filter(self, record): |
||||
|
if record.name == 'django.request' and record.status_code == 404: |
||||
|
record.levelno = INFO |
||||
|
return 1 # Keep the log record |
Loading…
Reference in new issue