mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
OAuth2AccessToken: Log attributes when an invalid token is found
This will help diagnose why these invalid tokens exist.
This commit is contained in:
@@ -643,6 +643,9 @@ class OAuth2AccessToken(Token):
|
||||
client = OAuth2Client._byID(self.client_id)
|
||||
if getattr(client, 'deleted', False):
|
||||
raise NotFound
|
||||
except AttributeError:
|
||||
g.log.error("bad token %s: %s", self, self._t)
|
||||
raise
|
||||
except NotFound:
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user