From 314f0b8dbe213226979c027c40ac2c8e6ceb860c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 1 Sep 2017 11:20:56 +0200 Subject: [PATCH] Quote token when logging This helps when debugging strange tokens. --- pillar/api/utils/authentication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pillar/api/utils/authentication.py b/pillar/api/utils/authentication.py index 86b6f1a0..deb53a93 100644 --- a/pillar/api/utils/authentication.py +++ b/pillar/api/utils/authentication.py @@ -152,7 +152,7 @@ def validate_this_token(token, oauth_subclient=None): # Check the users to see if there is one with this Blender ID token. db_token = find_token(token, oauth_subclient) if not db_token: - log.debug('Token %s not found in our local database.', token) + log.debug('Token %r not found in our local database.', token) # If no valid token is found in our local database, we issue a new # request to the Blender ID server to verify the validity of the token