From 387a39ad8d8679d37d4c463a6d739372d6429bdc Mon Sep 17 00:00:00 2001 From: kracekumar Date: Wed, 28 Jun 2017 23:58:41 +0530 Subject: [PATCH] Add sentry for error logging --- requirements.txt | 2 ++ settings/dev.py.sample | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/requirements.txt b/requirements.txt index ceb3961e..497a614a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -62,3 +62,5 @@ django-uuidfield==0.5.0 # Ticket qrcode==5.1 jsonfield==1.0.3 + +raven==6.1.0 diff --git a/settings/dev.py.sample b/settings/dev.py.sample index 77797bfb..2e845ada 100644 --- a/settings/dev.py.sample +++ b/settings/dev.py.sample @@ -2,6 +2,7 @@ from __future__ import absolute_import, unicode_literals import os +import raven from .common import * # noqa @@ -30,3 +31,11 @@ BROKER_URL = os.environ.get("BROKER_URL", "redis://127.0.0.1:6379/0") CELERY_RESULT_BACKEND = os.environ.get("CELERY_RESULT_BACKEND", 'redis://127.0.0.1:6379/0') SPAM_MODERATION_ADMINS = [] + + +RAVEN_CONFIG = { + 'dsn': 'https://:@sentry.io/', + # If you are using git, you can also automatically configure the + # release based on the git info. + 'release': raven.fetch_git_sha(os.path.dirname(os.pardir)), +}