From 8d273de4d83bf148c8ad1d09b18473ab863b42ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 9 May 2016 11:28:12 +0200 Subject: [PATCH] Reduced noisy logging when auth tokens have expired. --- pillar/application/modules/blender_id.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pillar/application/modules/blender_id.py b/pillar/application/modules/blender_id.py index f7872668..154adfa6 100644 --- a/pillar/application/modules/blender_id.py +++ b/pillar/application/modules/blender_id.py @@ -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) 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 # 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 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 resp = r.json()