policies: log full stacktrace

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer 2023-01-14 19:53:21 +01:00
parent 8deced771d
commit d37de6bc00
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -138,5 +138,5 @@ class PolicyProcess(PROCESS_CLASS):
try:
self.connection.send(self.profiling_wrapper())
except Exception as exc: # pylint: disable=broad-except
LOGGER.warning("Policy failed to run", exc=exc)
LOGGER.warning("Policy failed to run", exc=exception_to_string(exc))
self.connection.send(PolicyResult(False, str(exc)))