mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 06:25:59 +08:00
Add encvironment variable to Sentry crash logging
CURA-7050
This commit is contained in:
parent
4de28bed28
commit
8dc6e7a386
11
cura_app.py
11
cura_app.py
@ -23,7 +23,18 @@ parser.add_argument("--debug",
|
||||
)
|
||||
|
||||
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",
|
||||
environment = sentry_env,
|
||||
release = "cura%s" % ApplicationMetadata.CuraVersion,
|
||||
default_integrations = False,
|
||||
max_breadcrumbs = 200)
|
||||
|
Loading…
x
Reference in New Issue
Block a user