Reduced noisy logging when auth tokens have expired.

This commit is contained in:
Sybren A. Stüvel 2016-05-09 11:28:12 +02:00
parent d57bad36d5
commit 8d273de4d8

View File

@ -59,7 +59,7 @@ def validate_create_user(blender_id_user_id, token, oauth_subclient_id):
user_info, token_expiry = validate_token(blender_id_user_id, token, oauth_subclient_id) user_info, token_expiry = validate_token(blender_id_user_id, token, oauth_subclient_id)
if user_info is None: if user_info is None:
log.warning('Unable to verify token with Blender ID.') log.debug('Unable to verify token with Blender ID.')
return None, None return None, None
# Blender ID can be queried without user ID, and will always include the # Blender ID can be queried without user ID, and will always include the
@ -126,7 +126,7 @@ def validate_token(user_id, token, oauth_subclient_id):
return None, None return None, None
if r.status_code != 200: if r.status_code != 200:
log.info('Token invalid, HTTP status %i returned', r.status_code) log.debug('Token %s invalid, HTTP status %i returned', token, r.status_code)
return None, None return None, None
resp = r.json() resp = r.json()