From 244cd7e918f192d16c8e3d832273d83a58dd6be6 Mon Sep 17 00:00:00 2001 From: Slava Kyrachevsky Date: Wed, 18 Jan 2017 16:45:40 +0200 Subject: [PATCH] sentry --- proj/settings.py | 38 +++++++------------------------------- 1 file changed, 7 insertions(+), 31 deletions(-) diff --git a/proj/settings.py b/proj/settings.py index 4bc60872..aaadf0fa 100644 --- a/proj/settings.py +++ b/proj/settings.py @@ -395,7 +395,7 @@ INSTALLED_APPS = ( 'south', 'rosetta', 'widget_tweaks', - + 'raven.contrib.django.raven_compat', ) CRONJOBS = [ @@ -434,36 +434,6 @@ HAYSTACK_CONNECTIONS = { }, } - -# 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, - }, - } -} - # TODO automate crons """ # update search indexes @@ -554,6 +524,12 @@ PERIODIC = { 8: _(u'Раз в 4 года'), 9: _(u'Раз в 5 лет') } + +# sentry +RAVEN_CONFIG = { + 'dsn': 'http://eb7e4b632b3543f487386cbe9151b174:0b148a7ed13643c88d3a6b014c3a4f65@sentry.oldmin.org/2', +} + try: from local import * except ImportError, e: