From 82e27a74588ca85638951c27c1c0e370cb206cf2 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 13 Jan 2024 23:01:52 +0100 Subject: [PATCH] fix pylint crashing with debug? Signed-off-by: Jens Langhammer --- authentik/lib/sentry.py | 2 -- authentik/root/settings.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/authentik/lib/sentry.py b/authentik/lib/sentry.py index e760173ce..6ea34625e 100644 --- a/authentik/lib/sentry.py +++ b/authentik/lib/sentry.py @@ -60,8 +60,6 @@ def sentry_init(**sentry_init_kwargs): }, } kwargs.update(**sentry_init_kwargs) - if settings.DEBUG: - kwargs["spotlight"] = True # pylint: disable=abstract-class-instantiated sentry_sdk_init( dsn=CONFIG.get("error_reporting.sentry_dsn"), diff --git a/authentik/root/settings.py b/authentik/root/settings.py index 038d6af8f..251c2e65a 100644 --- a/authentik/root/settings.py +++ b/authentik/root/settings.py @@ -365,7 +365,7 @@ env = get_env() _ERROR_REPORTING = CONFIG.get_bool("error_reporting.enabled", False) if _ERROR_REPORTING: sentry_env = CONFIG.get("error_reporting.environment", "customer") - sentry_init() + sentry_init(spotlight=DEBUG) set_tag("authentik.uuid", sha512(str(SECRET_KEY).encode("ascii")).hexdigest()[:16])