Fix Sentry DSN issues

This commit is contained in:
thatdonfc 2021-03-09 07:53:31 -08:00
parent fe80183072
commit 621bc7421c
No known key found for this signature in database
GPG Key ID: 805A5EDAE682FD3A
2 changed files with 6 additions and 3 deletions

View File

@ -25,7 +25,7 @@ jobs:
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN_PYPI }}
run: |
sed -i 's,"",'"$SENTRY_DSN"',g' ./ledfx/sentry_config.py
sed -i 's,DSN,'"$SENTRY_DSN"',' ./ledfx/sentry_config.py
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
uses: actions/setup-python@v2.2.1
with:

View File

@ -7,8 +7,11 @@ from ledfx.consts import PROJECT_VERSION
# Otherwise the LedFx sentry key is inserted here during deployment.
sentry_dsn = ""
if sentry_dsn != "":
sentry_dsn = "DSN"
if (
sentry_dsn
== "https://691086dc41fa4218860be6ed4c888145@o482797.ingest.sentry.io/5533553"
):
sentry_sdk.init(
sentry_dsn,
traces_sample_rate=1,