Skip to content

Commit

Permalink
Change token refresh log level to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Guy293 committed Aug 14, 2022
1 parent 1270302 commit 7223a60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tami4EdgeAPI/Tami4EdgeAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get_access_token(self) -> str:
"""Get the access token, refreshing it if necessary."""

if not self._token.is_valid:
logging.info("Token is invalid, refreshing Token")
logging.debug("Token is invalid, refreshing Token")

response = requests.post(
f"{Tami4EdgeAPI.ENDPOINT}/public/token/refresh",
Expand All @@ -55,7 +55,7 @@ def get_access_token(self) -> str:
logging.error("Token Refresh Failed, response: %s", response)
raise Exception("Token Refresh Failed")

logging.info("Token Refresh Successful")
logging.debug("Token Refresh Successful")

self._token = Token(
refresh_token=response["refresh_token"],
Expand Down

0 comments on commit 7223a60

Please sign in to comment.