From 3455bf3d27dd35456994a27423da679d2480eb1b Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 7 Jun 2022 22:26:01 +0200 Subject: [PATCH] policies: consolidate log user and application Signed-off-by: Jens Langhammer --- authentik/policies/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authentik/policies/views.py b/authentik/policies/views.py index 96b785afb..ae1c8abfd 100644 --- a/authentik/policies/views.py +++ b/authentik/policies/views.py @@ -117,8 +117,8 @@ class PolicyAccessView(AccessMixin, View): result = policy_engine.result LOGGER.debug( "PolicyAccessView user_has_access", - user=user, - app=self.application, + user=user.username, + app=self.application.slug, result=result, ) if not result.passing: