Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Ignore some errors in demo sentry (#9116)

Jakub772ffcc6ebbb
diff --git a/saleor/demo/settings.py b/saleor/demo/settings.py
index 7a131d741d..9e8121dab8 100644
--- a/saleor/demo/settings.py
+++ b/saleor/demo/settings.py
@@ -28,7 +28,9 @@ ROOT_URLCONF = "saleor.demo.urls"
PLUGINS += ["saleor.plugins.anonymize.plugin.AnonymizePlugin"]
-GRAPHENE["MIDDLEWARE"].insert(0, "saleor.graphql.middleware.ReadOnlyMiddleware") # type: ignore
+GRAPHENE.setdefault("MIDDLEWARE", []).insert( # type: ignore
+ 0, "saleor.graphql.middleware.ReadOnlyMiddleware"
+)
BRAINTREE_API_KEY = os.environ.get("BRAINTREE_API_KEY")
BRAINTREE_MERCHANT_ID = os.environ.get("BRAINTREE_MERCHANT_ID")
@@ -87,3 +89,5 @@ if DEMO_SENTRY_DSN:
before_send=before_send,
)
ignore_logger("graphql.execution.utils")
+ ignore_logger("graphql.execution.executor")
+ ignore_logger("django.security.DisallowedHost")