mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Added ADMINS setting
This commit is contained in:
7
src/pretix/helpers/logs.py
Normal file
7
src/pretix/helpers/logs.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import logging
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
class AdminExistsFilter(logging.Filter):
|
||||
def filter(self, record):
|
||||
return not settings.DEBUG and len(settings.ADMINS) > 0
|
||||
Reference in New Issue
Block a user