Browse Source

Add user (identified by MAC) & ensure that no personal info is in server_name

Jaime van Kessel 5 years ago
parent
commit
0295113b31
2 changed files with 5 additions and 2 deletions
  1. 3 1
      cura/CrashHandler.py
  2. 2 1
      cura_app.py

+ 3 - 1
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):

+ 2 - 1
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():