From 6b6702521fc57291a78c102ef1b2e0e085731572 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 7 Jan 2022 21:53:22 +0100 Subject: [PATCH] api: don't return error reporting enabled when debug is enabled Signed-off-by: Jens Langhammer --- authentik/api/v3/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/api/v3/config.py b/authentik/api/v3/config.py index e4905b170..fb5f7cc9c 100644 --- a/authentik/api/v3/config.py +++ b/authentik/api/v3/config.py @@ -80,7 +80,7 @@ class ConfigView(APIView): config = ConfigSerializer( { "error_reporting": { - "enabled": CONFIG.y("error_reporting.enabled"), + "enabled": CONFIG.y("error_reporting.enabled") and not settings.DEBUG, "environment": CONFIG.y("error_reporting.environment"), "send_pii": CONFIG.y("error_reporting.send_pii"), "traces_sample_rate": float(CONFIG.y("error_reporting.sample_rate", 0.4)),