mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Add a bit more logging to the authorization service
This commit is contained in:
parent
881e98c642
commit
36efa171c6
1 changed files with 2 additions and 0 deletions
|
|
@ -83,9 +83,11 @@ class AuthorizationService:
|
||||||
if not self.getUserProfile():
|
if not self.getUserProfile():
|
||||||
# We check if we can get the user profile.
|
# We check if we can get the user profile.
|
||||||
# If we can't get it, that means the access token (JWT) was invalid or expired.
|
# If we can't get it, that means the access token (JWT) was invalid or expired.
|
||||||
|
Logger.log("w", "Unable to get the user profile.")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if self._auth_data is None:
|
if self._auth_data is None:
|
||||||
|
Logger.log("d", "No auth data to retrieve the access_token from")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return self._auth_data.access_token
|
return self._auth_data.access_token
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue