mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Add encvironment variable to Sentry crash logging
CURA-7050
This commit is contained in:
parent
4de28bed28
commit
8dc6e7a386
1 changed files with 11 additions and 0 deletions
11
cura_app.py
11
cura_app.py
|
|
@ -23,7 +23,18 @@ parser.add_argument("--debug",
|
||||||
)
|
)
|
||||||
|
|
||||||
known_args = vars(parser.parse_known_args()[0])
|
known_args = vars(parser.parse_known_args()[0])
|
||||||
|
|
||||||
|
sentry_env = "production"
|
||||||
|
if ApplicationMetadata.CuraVersion == "master":
|
||||||
|
sentry_env = "development"
|
||||||
|
try:
|
||||||
|
if ApplicationMetadata.CuraVersion.split(".")[2] == "99":
|
||||||
|
sentry_env = "nightly"
|
||||||
|
except IndexError:
|
||||||
|
pass
|
||||||
|
|
||||||
sentry_sdk.init("https://5034bf0054fb4b889f82896326e79b13@sentry.io/1821564",
|
sentry_sdk.init("https://5034bf0054fb4b889f82896326e79b13@sentry.io/1821564",
|
||||||
|
environment = sentry_env,
|
||||||
release = "cura%s" % ApplicationMetadata.CuraVersion,
|
release = "cura%s" % ApplicationMetadata.CuraVersion,
|
||||||
default_integrations = False,
|
default_integrations = False,
|
||||||
max_breadcrumbs = 200)
|
max_breadcrumbs = 200)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue