-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #1406 introduce sentry to better diagnose runtime errors
- Loading branch information
1 parent
11aed6b
commit b165c0e
Showing
12 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,10 @@ FLASK_ENV: development | |
# SESSION_COOKIE_HTTPONLY: True | ||
# SESSION_COOKIE_SAMESITE: None | ||
|
||
# Sentry_sdk_dsn | ||
SENTRY_SDK_DSN: "https://[email protected]/123456789" | ||
SENTRY_SDK_SESSION_REPLAY_ID: "changeme" | ||
|
||
# Software as a service (SAAS) | ||
SAAS_URL: https://subscribie.co.uk/ | ||
# SAAS_API_KEY is to allow subscribie platform to send authenticated | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
<link rel="stylesheet" href="{{ url_for('admin.static', filename='custom_style.css') }}"> | ||
<link href="https://fonts.googleapis.com/css?family=Lato:900,400" rel="stylesheet"> | ||
<script src="https://unpkg.com/[email protected]"></script> | ||
<script src="https://js-de.sentry-cdn.com/{{ SENTRY_SDK_SESSION_REPLAY_ID }}.min.js" crossorigin="anonymous"></script> | ||
|
||
{% if integration.google_tag_manager_container_id | ||
and integration.google_tag_manager_active | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
subscribie/themes/theme-jesmond/jesmond/errors/ui-error.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% extends "layout.html" %} | ||
|
||
{% block body %} | ||
<script> | ||
window.onload = () => { | ||
throw new Error('This is a test error'); | ||
}; | ||
</script> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters