diff --git a/synapse/rest/client/keys.py b/synapse/rest/client/keys.py index 135818fe5b79..f664c6d1dbbb 100644 --- a/synapse/rest/client/keys.py +++ b/synapse/rest/client/keys.py @@ -277,8 +277,10 @@ async def on_POST(self, request: SynapseRequest) -> Tuple[int, JsonDict]: user_id = requester.user.to_string() body = parse_json_object_from_request(request) + logger.info(f"""MSC3967-{user_id} - msc3967_enabled={self.hs.config.experimental.msc3967_enabled}""") if self.hs.config.experimental.msc3967_enabled: if await self.e2e_keys_handler.is_cross_signing_set_up_for_user(user_id): + logger.info(f"""MSC3967-{user_id} - We already have a master key then cross signing is set up and we require UIA to reset""") # If we already have a master key then cross signing is set up and we require UIA to reset await self.auth_handler.validate_user_via_ui_auth( requester, @@ -290,6 +292,7 @@ async def on_POST(self, request: SynapseRequest) -> Tuple[int, JsonDict]: ) # Otherwise we don't require UIA since we are setting up cross signing for first time else: + logger.info(f"""MSC3967-{user_id} - Setting up Cross signing for first time , UIA can be skipped""") # Previous behaviour is to always require UIA but allow it to be skipped await self.auth_handler.validate_user_via_ui_auth( requester, @@ -300,7 +303,8 @@ async def on_POST(self, request: SynapseRequest) -> Tuple[int, JsonDict]: # after login and it is silly to ask users to re-auth immediately. can_skip_ui_auth=True, ) - + + logger.info(f"""MSC3967-{user_id} - Will upload signing key""") result = await self.e2e_keys_handler.upload_signing_keys_for_user(user_id, body) return 200, result