From 7223a60fc164b61177d1ee4d8f5059b56f5c520b Mon Sep 17 00:00:00 2001 From: guy shefer Date: Sun, 14 Aug 2022 08:54:42 +0300 Subject: [PATCH] Change token refresh log level to debug --- Tami4EdgeAPI/Tami4EdgeAPI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tami4EdgeAPI/Tami4EdgeAPI.py b/Tami4EdgeAPI/Tami4EdgeAPI.py index f0e44c3..274c2f4 100644 --- a/Tami4EdgeAPI/Tami4EdgeAPI.py +++ b/Tami4EdgeAPI/Tami4EdgeAPI.py @@ -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", @@ -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"],