X-Git-Url: https://git.mdrn.pl/fnp-django-template.git/blobdiff_plain/94e4264e4ac4f8f34d2975f26a0337e6f2c35027..87776dc1caec95a6eaaf011a7356e676722a11a3:/project_name/settings.d/40-logging.py diff --git a/project_name/settings.d/40-logging.py b/project_name/settings.d/40-logging.py deleted file mode 100644 index 3d91c9c..0000000 --- a/project_name/settings.d/40-logging.py +++ /dev/null @@ -1,28 +0,0 @@ -# A sample logging configuration. The only tangible logging -# performed by this configuration is to send an email to -# the site admins on every HTTP 500 error when DEBUG=False. -# See http://docs.djangoproject.com/en/dev/topics/logging for -# more details on how to customize your logging configuration. -LOGGING = { - 'version': 1, - 'disable_existing_loggers': False, - 'filters': { - 'require_debug_false': { - '()': 'django.utils.log.RequireDebugFalse' - } - }, - 'handlers': { - 'mail_admins': { - 'level': 'ERROR', - 'filters': ['require_debug_false'], - 'class': 'django.utils.log.AdminEmailHandler' - } - }, - 'loggers': { - 'django.request': { - 'handlers': ['mail_admins'], - 'level': 'ERROR', - 'propagate': True, - }, - } -}