diff options
author | Jaime van Kessel <nallath@gmail.com> | 2019-11-22 14:59:05 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2019-11-22 14:59:05 +0300 |
commit | 23057f786fefc63dd77d67b47c7e4ece8c5dda4f (patch) | |
tree | fce420b23d621ae965532485e7d639dac420322d /cura_app.py | |
parent | 74b5af3edddc68d96cd6c6e8fdc935add90dac9b (diff) |
Add initial stubs for sentry logging
Diffstat (limited to 'cura_app.py')
-rwxr-xr-x | cura_app.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cura_app.py b/cura_app.py index e14b4410bc..cc9a44a5db 100755 --- a/cura_app.py +++ b/cura_app.py @@ -9,8 +9,11 @@ import os import sys from UM.Platform import Platform +from cura import ApplicationMetadata from cura.ApplicationMetadata import CuraAppName +import sentry_sdk + parser = argparse.ArgumentParser(prog = "cura", add_help = False) parser.add_argument("--debug", @@ -18,7 +21,9 @@ parser.add_argument("--debug", default = False, help = "Turn on the debug mode by setting this option." ) + known_args = vars(parser.parse_known_args()[0]) +sentry_sdk.init("https://5034bf0054fb4b889f82896326e79b13@sentry.io/1821564", release = "cura%s" % ApplicationMetadata.CuraVersion, default_integrations=False ) if not known_args["debug"]: def get_cura_dir_path(): |