Prune all sensitive data before sending it to Sentry

CURA-7245
This commit is contained in:
Nino van Hooff 2020-02-24 15:27:17 +01:00
parent e52dc56a64
commit 62dfadecdf
3 changed files with 23 additions and 10 deletions

View file

@ -11,6 +11,7 @@ import sys
from UM.Platform import Platform
from cura import ApplicationMetadata
from cura.ApplicationMetadata import CuraAppName
from cura.CrashHandler import CrashHandler
try:
import sentry_sdk
@ -42,8 +43,9 @@ if with_sentry_sdk:
sentry_env = "nightly"
except IndexError:
pass
sentry_sdk.init("https://5034bf0054fb4b889f82896326e79b13@sentry.io/1821564",
before_send = CrashHandler.sentry_before_send,
environment = sentry_env,
release = "cura%s" % ApplicationMetadata.CuraVersion,
default_integrations = False,