fix pylint crashing with debug?
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
7a943eac31
commit
82e27a7458
|
@ -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"),
|
||||
|
|
|
@ -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])
|
||||
|
||||
|
||||
|
|
Reference in a new issue