Fix log level on expired OAuth log

This commit is contained in:
Joseph Schorr 2018-01-04 12:59:21 -05:00
parent b54ebacdfb
commit 1ba3c24fe5

View file

@ -34,7 +34,7 @@ def validate_oauth_token(token):
error_message='OAuth access token could not be validated')
if validated.expires_at <= datetime.utcnow():
logger.info('OAuth access with an expired token: %s', token)
logger.warning('OAuth access with an expired token: %s', token)
return ValidateResult(AuthKind.oauth, error_message='OAuth access token has expired')
# Don't allow disabled users to login.