From 394d8e99a423aacca7e5a05aae32602a8d86b12e Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 23 May 2022 20:18:00 +0200 Subject: [PATCH] policies: improve error logging Signed-off-by: Jens Langhammer --- authentik/policies/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/policies/process.py b/authentik/policies/process.py index 36077df74..77bfd8a48 100644 --- a/authentik/policies/process.py +++ b/authentik/policies/process.py @@ -151,5 +151,5 @@ class PolicyProcess(PROCESS_CLASS): try: self.connection.send(self.profiling_wrapper()) except Exception as exc: # pylint: disable=broad-except - LOGGER.warning(str(exc)) + LOGGER.warning("Policy failed to run", exc=exc) self.connection.send(PolicyResult(False, str(exc)))