Skip to content

Commit

Permalink
fix: Silence keyring warnings by changing to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ggydush-fn committed Mar 29, 2023
1 parent c0b06be commit f9c4725
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flytekit/clients/auth/keyring.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def store(credentials: Credentials) -> Credentials:
credentials.access_token,
)
except NoKeyringError as e:
logging.warning(f"KeyRing not available, tokens will not be cached. Error: {e}")
logging.debug(f"KeyRing not available, tokens will not be cached. Error: {e}")
return credentials

@staticmethod
Expand All @@ -49,7 +49,7 @@ def retrieve(for_endpoint: str) -> typing.Optional[Credentials]:
refresh_token = _keyring.get_password(for_endpoint, KeyringStore._refresh_token_key)
access_token = _keyring.get_password(for_endpoint, KeyringStore._access_token_key)
except NoKeyringError as e:
logging.warning(f"KeyRing not available, tokens will not be cached. Error: {e}")
logging.debug(f"KeyRing not available, tokens will not be cached. Error: {e}")
return None

if not access_token:
Expand All @@ -62,4 +62,4 @@ def delete(for_endpoint: str):
_keyring.delete_password(for_endpoint, KeyringStore._access_token_key)
_keyring.delete_password(for_endpoint, KeyringStore._refresh_token_key)
except NoKeyringError as e:
logging.warning(f"KeyRing not available, tokens will not be cached. Error: {e}")
logging.debug(f"KeyRing not available, tokens will not be cached. Error: {e}")

0 comments on commit f9c4725

Please sign in to comment.