Skip to content

Commit

Permalink
sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethreitz committed Nov 21, 2016
1 parent 1531c51 commit 07fd1ee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion requirements-to-freeze.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ psycopg2
records
docopt
sendgrid
auth0-python
auth0-python
raven[flask]
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
auth0-python==2.0.1
blinker==1.4
click==6.6
contextlib2==0.5.4
docopt==0.6.2
Flask==0.11.1
gunicorn==19.6.0
Expand All @@ -10,6 +12,7 @@ psycopg2==2.6.2
pycrypto==2.6.1
PyJWT==1.4.2
python-http-client==2.2.1
raven==5.32.0
records==0.5.0
requests==2.11.1
sendgrid==3.6.3
Expand Down
4 changes: 3 additions & 1 deletion saythanks/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,19 @@
from uuid import uuid4
from flask import Flask, request, session, render_template, url_for
from flask import abort, redirect
from raven.contrib.flask import Sentry

from . import storage

# Application Basics
# ------------------


app = Flask(__name__)
app.secret_key = os.environ.get('APP_SECRET', 'CHANGEME')
app.debug = True

# Sentry for catching application errors in production.
sentry = Sentry(app, dsn=os.environ['SENTRY_DSN'])

# Auth0 Integration
# -----------------
Expand Down

1 comment on commit 07fd1ee

@mattrobenolt
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍦

Please sign in to comment.