mirror of https://github.com/LedFx/LedFx.git
Fix Sentry DSN issues
This commit is contained in:
parent
fe80183072
commit
621bc7421c
|
@ -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:
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue