Skip to content

Commit 3898ecd

Browse files
committed
Test Sentry error reporting from WebSocket
Sentry logging doesn't seem to be working from the WebSocket app and I can't figure out why. Test whether error reporting is working.
1 parent f6cbb77 commit 3898ecd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

h/views/status.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212
@json_view(route_name="status", http_cache=0)
1313
def status(request):
14+
if "crash" in request.params: # pragma: no cover
15+
raise RuntimeError("This is a test crash") # noqa: EM101,TRY003
16+
1417
try:
1518
request.db.execute(text("SELECT 1"))
1619
except Exception as err:

0 commit comments

Comments
 (0)