diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2018-06-26 09:55:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-26 09:55:55 +0100 |
commit | 1d62c4a127e9d4d2c4a209bb935455149feede75 (patch) | |
tree | 0d5c550513042cfe31c63787eb3d1f8b6a3845b8 /synapse | |
parent | Merge pull request #3442 from matrix-org/matthew/allow-unconsented-parts (diff) | |
parent | Don't print invalid access tokens in the logs (diff) | |
download | synapse-1d62c4a127e9d4d2c4a209bb935455149feede75.tar.xz |
Merge pull request #3438 from turt2live/travis/dont-print-access-tokens-in-logs
Stop including access tokens in warnings in the log
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/api/auth.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py index 66639b0089..54186695cd 100644 --- a/synapse/api/auth.py +++ b/synapse/api/auth.py @@ -488,7 +488,7 @@ class Auth(object): def _look_up_user_by_access_token(self, token): ret = yield self.store.get_user_by_access_token(token) if not ret: - logger.warn("Unrecognised access token - not in store: %s" % (token,)) + logger.warn("Unrecognised access token - not in store.") raise AuthError( self.TOKEN_NOT_FOUND_HTTP_STATUS, "Unrecognised access token.", errcode=Codes.UNKNOWN_TOKEN @@ -511,7 +511,7 @@ class Auth(object): ) service = self.store.get_app_service_by_token(token) if not service: - logger.warn("Unrecognised appservice access token: %s" % (token,)) + logger.warn("Unrecognised appservice access token.") raise AuthError( self.TOKEN_NOT_FOUND_HTTP_STATUS, "Unrecognised access token.", |