mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Add initial stubs for sentry logging
This commit is contained in:
parent
74b5af3edd
commit
23057f786f
2 changed files with 16 additions and 9 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue