core: add more logs to flow_manager
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
f072c600cc
commit
dda1d4e0fb
|
@ -116,9 +116,11 @@ class SourceFlowManager:
|
||||||
)
|
)
|
||||||
return Action.DENY, None
|
return Action.DENY, None
|
||||||
query = Q(username__exact=self.enroll_info.get("username", 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)
|
matching_users = User.objects.filter(query)
|
||||||
# No matching users, always enroll
|
# No matching users, always enroll
|
||||||
if not matching_users.exists():
|
if not matching_users.exists():
|
||||||
|
self._logger.debug("no matching users found, enrolling")
|
||||||
return Action.ENROLL, self.update_connection(new_connection, **kwargs)
|
return Action.ENROLL, self.update_connection(new_connection, **kwargs)
|
||||||
|
|
||||||
user = matching_users.first()
|
user = matching_users.first()
|
||||||
|
|
Reference in New Issue