From dda1d4e0fba244bca456e7e4b60521d2ec5dab89 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 9 May 2021 20:27:37 +0200 Subject: [PATCH] core: add more logs to flow_manager Signed-off-by: Jens Langhammer --- authentik/core/sources/flow_manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/authentik/core/sources/flow_manager.py b/authentik/core/sources/flow_manager.py index b3b8bb3aa..79b7145ed 100644 --- a/authentik/core/sources/flow_manager.py +++ b/authentik/core/sources/flow_manager.py @@ -116,9 +116,11 @@ class SourceFlowManager: ) return Action.DENY, None query = Q(username__exact=self.enroll_info.get("username", None)) + self._logger.debug("trying to link with existing user", query=query) matching_users = User.objects.filter(query) # No matching users, always enroll if not matching_users.exists(): + self._logger.debug("no matching users found, enrolling") return Action.ENROLL, self.update_connection(new_connection, **kwargs) user = matching_users.first()