diff options
author | David Baker <dave@matrix.org> | 2016-11-24 10:11:45 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-11-24 10:11:45 +0000 |
commit | f681aab895b536d0eef33f330f49e75517fbaf7f (patch) | |
tree | 7a4322696e3d6f27a294fe327e37d87bc7841f96 /synapse/handlers/auth.py | |
parent | Merge pull request #1644 from matrix-org/erikj/efficient_notif_counts (diff) | |
download | synapse-f681aab895b536d0eef33f330f49e75517fbaf7f.tar.xz |
Log the args that we have on UI auth completion
This will be super helpful for debugging if we have more registration woes.
Diffstat (limited to 'synapse/handlers/auth.py')
-rw-r--r-- | synapse/handlers/auth.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py index a2866af431..91b3bde2f2 100644 --- a/synapse/handlers/auth.py +++ b/synapse/handlers/auth.py @@ -162,7 +162,13 @@ class AuthHandler(BaseHandler): for f in flows: if len(set(f) - set(creds.keys())) == 0: - logger.info("Auth completed with creds: %r", creds) + # it's very useful to know what args are stored, but this can + # include the password in the case of registering, so only log + # the keys. + logger.info( + "Auth completed with creds: %r. Client dict has keys: %r", + creds, clientdict.keys() + ) defer.returnValue((True, creds, clientdict, session['id'])) ret = self._auth_dict_for_flows(flows, session) |