mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Add raven and related information
This commit is contained in:
@@ -34,6 +34,8 @@ MIDDLEWARE_CLASSES = [
|
|||||||
'sso.middleware.InactiveLogoutMiddleware',
|
'sso.middleware.InactiveLogoutMiddleware',
|
||||||
'sso.middleware.IGBMiddleware',
|
'sso.middleware.IGBMiddleware',
|
||||||
'sso.middleware.IPTrackingMiddleware',
|
'sso.middleware.IPTrackingMiddleware',
|
||||||
|
'raven.contrib.django.middleware.Sentry404CatchMiddleware',
|
||||||
|
'raven.contrib.django.middleware.SentryResponseErrorIdMiddleware',
|
||||||
]
|
]
|
||||||
|
|
||||||
ROOT_URLCONF = 'urls'
|
ROOT_URLCONF = 'urls'
|
||||||
@@ -62,6 +64,7 @@ INSTALLED_APPS = [
|
|||||||
'django.contrib.sites',
|
'django.contrib.sites',
|
||||||
'django.contrib.humanize',
|
'django.contrib.humanize',
|
||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
|
'raven.contrib.django',
|
||||||
'gargoyle',
|
'gargoyle',
|
||||||
'south',
|
'south',
|
||||||
'piston',
|
'piston',
|
||||||
@@ -159,7 +162,7 @@ LOGGING = {
|
|||||||
'disable_existing_loggers': False,
|
'disable_existing_loggers': False,
|
||||||
'root': {
|
'root': {
|
||||||
'level': 'WARNING',
|
'level': 'WARNING',
|
||||||
'handlers': ['console'],
|
'handlers': ['sentry'],
|
||||||
},
|
},
|
||||||
'filters': {
|
'filters': {
|
||||||
'require_debug_false': {
|
'require_debug_false': {
|
||||||
@@ -172,24 +175,17 @@ LOGGING = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
'handlers': {
|
'handlers': {
|
||||||
|
'sentry':
|
||||||
|
'level': 'ERROR',
|
||||||
|
'class': 'raven.contrib.django.handlers.SentryHandler',
|
||||||
|
},
|
||||||
'console': {
|
'console': {
|
||||||
'level': 'DEBUG',
|
'level': 'DEBUG',
|
||||||
'class': 'logging.StreamHandler',
|
'class': 'logging.StreamHandler',
|
||||||
'formatter': 'verbose'
|
'formatter': 'verbose'
|
||||||
},
|
},
|
||||||
'mail_admins': {
|
|
||||||
'level': 'ERROR',
|
|
||||||
'class': 'django.utils.log.AdminEmailHandler',
|
|
||||||
'include_html': True,
|
|
||||||
'filters': ['require_debug_false'],
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
'loggers': {
|
'loggers': {
|
||||||
'django.request': {
|
|
||||||
'handlers': ['console'],
|
|
||||||
'level': 'ERROR',
|
|
||||||
'propagate': True,
|
|
||||||
},
|
|
||||||
'django.db.backends': {
|
'django.db.backends': {
|
||||||
'level': 'ERROR',
|
'level': 'ERROR',
|
||||||
'handlers': ['console'],
|
'handlers': ['console'],
|
||||||
@@ -205,10 +201,5 @@ LOGGING = {
|
|||||||
'handlers': ['console'],
|
'handlers': ['console'],
|
||||||
'propagate': False,
|
'propagate': False,
|
||||||
},
|
},
|
||||||
'celery': {
|
|
||||||
'level': 'WARNING',
|
|
||||||
'handlers': ['console'],
|
|
||||||
'propagate': False,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
<img src="/static/img/ganked.jpg">
|
<img src="/static/img/ganked.jpg">
|
||||||
<p>Oops, it seems the server got ganked, CONCORD have been informed.</p>
|
<p>Oops, it seems the server got ganked, CONCORD have been informed.</p>
|
||||||
|
|
||||||
|
{% if request.sentry.id %}
|
||||||
|
<p>Be helpful, drop a message to the TEST sysadmin guys with this ID: <strong>{{ request.sentry.id }}</strong></p>
|
||||||
|
{% endif %}
|
||||||
|
|||||||
@@ -18,4 +18,4 @@ nexus
|
|||||||
gargoyle==0.9.0
|
gargoyle==0.9.0
|
||||||
-e hg+https://bitbucket.org/jespern/django-piston@7c90898072ce#egg=django_piston
|
-e hg+https://bitbucket.org/jespern/django-piston@7c90898072ce#egg=django_piston
|
||||||
-e hg+https://bitbucket.org/ubernostrum/django-registration@27bccd108cde#egg=django-registration
|
-e hg+https://bitbucket.org/ubernostrum/django-registration@27bccd108cde#egg=django-registration
|
||||||
|
raven>=2.0.3
|
||||||
|
|||||||
Reference in New Issue
Block a user