forked from AFPy/afpy.org
Just to check if sentry is correctly configured.
This commit is contained in:
parent
0f13d4e8ca
commit
e956c0237a
6
afpy.py
6
afpy.py
|
@ -315,6 +315,11 @@ def status():
|
|||
return jsonify(stats)
|
||||
|
||||
|
||||
@app.route("/debug-sentry")
|
||||
def trigger_error():
|
||||
print(1 / 0)
|
||||
|
||||
|
||||
@app.template_filter("rfc822_datetime")
|
||||
def format_rfc822_datetime(timestamp):
|
||||
return email.utils.formatdate(int(timestamp))
|
||||
|
@ -332,5 +337,6 @@ if app.env == "development": # pragma: no cover
|
|||
app.wsgi_app, {"afpy": ("sass", "static/css", "/static/css")}
|
||||
)
|
||||
|
||||
|
||||
if sentry_sdk:
|
||||
sentry_sdk.init(integrations=[FlaskIntegration()])
|
||||
|
|
Loading…
Reference in New Issue
Block a user