filter admin email logs for disallowed hosts

This commit is contained in:
aatish 2018-11-28 20:47:57 +05:45
commit 929b8bec24
2 changed files with 26 additions and 1 deletions

4
utils/log_filters.py Normal file
View file

@ -0,0 +1,4 @@
def skip_suspicious_operations(record):
if record.name == 'django.security.DisallowedHost':
return False
return True