filter admin email logs for disallowed hosts
This commit is contained in:
parent
66538f7335
commit
929b8bec24
2 changed files with 26 additions and 1 deletions
4
utils/log_filters.py
Normal file
4
utils/log_filters.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
def skip_suspicious_operations(record):
|
||||
if record.name == 'django.security.DisallowedHost':
|
||||
return False
|
||||
return True
|
||||
Loading…
Add table
Add a link
Reference in a new issue