mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-20 14:19:05 +08:00
Add a bit more logging to the authorization service
This commit is contained in:
parent
881e98c642
commit
36efa171c6
@ -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…
x
Reference in New Issue
Block a user