mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-16 18:59:39 +08:00
Filter out KeyboardInterrupts and MemoryErrors
This commit is contained in:
parent
d041131f84
commit
7d33830ae7
@ -59,13 +59,16 @@ if with_sentry_sdk:
|
|||||||
except IndexError:
|
except IndexError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
# Errors to be ignored by Sentry
|
||||||
|
ignore_errors = [KeyboardInterrupt, MemoryError]
|
||||||
sentry_sdk.init("https://5034bf0054fb4b889f82896326e79b13@sentry.io/1821564",
|
sentry_sdk.init("https://5034bf0054fb4b889f82896326e79b13@sentry.io/1821564",
|
||||||
before_send = CrashHandler.sentryBeforeSend,
|
before_send = CrashHandler.sentryBeforeSend,
|
||||||
environment = sentry_env,
|
environment = sentry_env,
|
||||||
release = "cura%s" % ApplicationMetadata.CuraVersion,
|
release = "cura%s" % ApplicationMetadata.CuraVersion,
|
||||||
default_integrations = False,
|
default_integrations = False,
|
||||||
max_breadcrumbs = 300,
|
max_breadcrumbs = 300,
|
||||||
server_name = "cura")
|
server_name = "cura",
|
||||||
|
ignore_errors = ignore_errors)
|
||||||
|
|
||||||
if not known_args["debug"]:
|
if not known_args["debug"]:
|
||||||
def get_cura_dir_path():
|
def get_cura_dir_path():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user