Add back happy path log lines, but drop their levels to debug
parent
c08ec463c2
commit
00673e1ced
|
@ -267,6 +267,12 @@ class SamlHandler(BaseHandler):
|
||||||
map_username_to_mxid_localpart(attrval), self.server_name
|
map_username_to_mxid_localpart(attrval), self.server_name
|
||||||
).to_string()
|
).to_string()
|
||||||
|
|
||||||
|
logger.debug(
|
||||||
|
"Looking for existing account based on mapped %s %s",
|
||||||
|
self._grandfathered_mxid_source_attribute,
|
||||||
|
user_id,
|
||||||
|
)
|
||||||
|
|
||||||
users = await self.store.get_users_by_id_case_insensitive(user_id)
|
users = await self.store.get_users_by_id_case_insensitive(user_id)
|
||||||
if users:
|
if users:
|
||||||
registered_user_id = list(users.keys())[0]
|
registered_user_id = list(users.keys())[0]
|
||||||
|
|
|
@ -71,6 +71,12 @@ class SsoHandler(BaseHandler):
|
||||||
Returns:
|
Returns:
|
||||||
The mxid of a previously seen user.
|
The mxid of a previously seen user.
|
||||||
"""
|
"""
|
||||||
|
logger.debug(
|
||||||
|
"Looking for existing mapping for user %s:%s",
|
||||||
|
auth_provider_id,
|
||||||
|
remote_user_id,
|
||||||
|
)
|
||||||
|
|
||||||
# Check if we already have a mapping for this user.
|
# Check if we already have a mapping for this user.
|
||||||
previously_registered_user_id = await self.store.get_user_by_external_id(
|
previously_registered_user_id = await self.store.get_user_by_external_id(
|
||||||
auth_provider_id, remote_user_id,
|
auth_provider_id, remote_user_id,
|
||||||
|
|
Loading…
Reference in New Issue