mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-16 18:59:39 +08:00
Apply suggestions from code review
Codestyle!
This commit is contained in:
parent
94e9753b6c
commit
9c0e6f9338
@ -97,7 +97,7 @@ class CrashHandler:
|
|||||||
return obj
|
return obj
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def sentry_before_send(event, hint):
|
def sentryBeforeSend(event, hint):
|
||||||
return CrashHandler.pruneSensitiveData(event)
|
return CrashHandler.pruneSensitiveData(event)
|
||||||
|
|
||||||
def _createEarlyCrashDialog(self):
|
def _createEarlyCrashDialog(self):
|
||||||
|
@ -45,7 +45,7 @@ if with_sentry_sdk:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
sentry_sdk.init("https://5034bf0054fb4b889f82896326e79b13@sentry.io/1821564",
|
sentry_sdk.init("https://5034bf0054fb4b889f82896326e79b13@sentry.io/1821564",
|
||||||
before_send = CrashHandler.sentry_before_send,
|
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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user