From 0295113b3103486af9f55a5dd333c8d103df1059 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 19 Dec 2019 11:23:39 +0100 Subject: [PATCH] Add user (identified by MAC) & ensure that no personal info is in server_name --- cura/CrashHandler.py | 4 +++- cura_app.py | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cura/CrashHandler.py b/cura/CrashHandler.py index aa53ca0cc5..09fda25a73 100644 --- a/cura/CrashHandler.py +++ b/cura/CrashHandler.py @@ -7,7 +7,7 @@ import faulthandler import tempfile import os import os.path -import time +import uuid import json import locale from typing import cast @@ -212,6 +212,8 @@ class CrashHandler: scope.set_tag("locale_cura", self.cura_locale) scope.set_tag("is_enterprise", ApplicationMetadata.IsEnterpriseVersion) + scope.set_user({"id": str(uuid.getnode())}) + return group def _getOpenGLInfo(self): diff --git a/cura_app.py b/cura_app.py index 4909f1296d..51f9041e86 100755 --- a/cura_app.py +++ b/cura_app.py @@ -37,7 +37,8 @@ sentry_sdk.init("https://5034bf0054fb4b889f82896326e79b13@sentry.io/1821564", environment = sentry_env, release = "cura%s" % ApplicationMetadata.CuraVersion, default_integrations = False, - max_breadcrumbs = 200) + max_breadcrumbs = 300, + server_name = "cura") if not known_args["debug"]: def get_cura_dir_path():