From 3052c6be3b4ff728ea781e006ae3af22c2f42a1f Mon Sep 17 00:00:00 2001 From: Jelle Spijker Date: Tue, 21 Nov 2023 13:21:25 +0100 Subject: [PATCH] Enable Sentry for the engine if the conan con sentry_url is set If you want to test this locally do a conan install with: ``` -c user.curaengine:sentry_url= ``` The URL is stored in the CuraEngine repository variables Contributes to CURA-11364 --- conanfile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conanfile.py b/conanfile.py index 4b37bfdd52..4ec4ffc03f 100644 --- a/conanfile.py +++ b/conanfile.py @@ -306,6 +306,8 @@ class CuraConan(ConanFile): self.options["boost"].header_only = True if self.settings.os == "Linux": self.options["curaengine_grpc_definitions"].shared = True + if self.conf.get("user.curaengine:sentry_url", "", check_type = str) != "": + self.options["curaengine"].enable_sentry = True def validate(self): version = self.conf_info.get("user.cura:version", default = self.version, check_type = str)