Skip to content
Snippets Groups Projects
Commit d2dde6a1 authored by Ben Adida's avatar Ben Adida
Browse files

added Rollbar error tracking

parent efa518ce
Branches
No related tags found
No related merge requests found
...@@ -22,3 +22,4 @@ boto==2.27.0 ...@@ -22,3 +22,4 @@ boto==2.27.0
django-ses==0.6.0 django-ses==0.6.0
validate_email==1.2 validate_email==1.2
oauth2client==1.2 oauth2client==1.2
rollbar==0.12.1
\ No newline at end of file
...@@ -269,3 +269,13 @@ djcelery.setup_loader() ...@@ -269,3 +269,13 @@ djcelery.setup_loader()
# for testing # for testing
TEST_RUNNER = 'djcelery.contrib.test_runner.CeleryTestSuiteRunner' TEST_RUNNER = 'djcelery.contrib.test_runner.CeleryTestSuiteRunner'
# this effectively does CELERY_ALWAYS_EAGER = True # this effectively does CELERY_ALWAYS_EAGER = True
# Rollbar Error Logging
ROLLBAR_ACCESS_TOKEN = get_from_env('ROLLBAR_ACCESS_TOKEN', None)
if ROLLBAR_ACCESS_TOKEN:
print "setting up rollbar"
MIDDLEWARE_CLASSES += ('rollbar.contrib.django.middleware.RollbarNotifierMiddleware',)
ROLLBAR = {
'access_token': ROLLBAR_ACCESS_TOKEN,
'environment': 'development' if DEBUG else 'production',
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment