summary refs log tree commit diff
path: root/synapse/handlers/sso.py
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2020-11-23 13:45:23 +0000
committerGitHub <noreply@github.com>2020-11-23 08:45:23 -0500
commit59a995f38dab8d83aee09ed7eb3858390ed53a65 (patch)
tree34473a422eeca82cfb2a02d9a3ae96a3f5949f87 /synapse/handlers/sso.py
parentINSTALL: Fix setting content-type on well-known (#8793) (diff)
downloadsynapse-59a995f38dab8d83aee09ed7eb3858390ed53a65.tar.xz
Improve logging of the mapping from SSO IDs to Matrix IDs. (#8773)
Diffstat (limited to 'synapse/handlers/sso.py')
-rw-r--r--synapse/handlers/sso.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/synapse/handlers/sso.py b/synapse/handlers/sso.py
index 9cb1866a71..cf7cb7754a 100644
--- a/synapse/handlers/sso.py
+++ b/synapse/handlers/sso.py
@@ -71,19 +71,25 @@ class SsoHandler(BaseHandler):
         Returns:
             The mxid of a previously seen user.
         """
-        # Check if we already have a mapping for this user.
-        logger.info(
+        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.
         previously_registered_user_id = await self.store.get_user_by_external_id(
             auth_provider_id, remote_user_id,
         )
 
         # A match was found, return the user ID.
         if previously_registered_user_id is not None:
-            logger.info("Found existing mapping %s", previously_registered_user_id)
+            logger.info(
+                "Found existing mapping for IdP '%s' and remote_user_id '%s': %s",
+                auth_provider_id,
+                remote_user_id,
+                previously_registered_user_id,
+            )
             return previously_registered_user_id
 
         # No match.