policies: log full stacktrace
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
8deced771d
commit
d37de6bc00
|
@ -138,5 +138,5 @@ class PolicyProcess(PROCESS_CLASS):
|
||||||
try:
|
try:
|
||||||
self.connection.send(self.profiling_wrapper())
|
self.connection.send(self.profiling_wrapper())
|
||||||
except Exception as exc: # pylint: disable=broad-except
|
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)))
|
self.connection.send(PolicyResult(False, str(exc)))
|
||||||
|
|
Reference in New Issue