From 79b11171815a516d13af4ac23f9b095523f7436e Mon Sep 17 00:00:00 2001 From: Yee Hing Tong Date: Wed, 3 Jun 2020 09:39:27 -0700 Subject: [PATCH] Fix logging (#119) --- flytekit/__init__.py | 2 +- flytekit/clients/raw.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flytekit/__init__.py b/flytekit/__init__.py index 875147396a..409eb5113f 100644 --- a/flytekit/__init__.py +++ b/flytekit/__init__.py @@ -2,4 +2,4 @@ import flytekit.plugins -__version__ = '0.8.1' +__version__ = '0.8.2' diff --git a/flytekit/clients/raw.py b/flytekit/clients/raw.py index 71bf249126..88ec062262 100644 --- a/flytekit/clients/raw.py +++ b/flytekit/clients/raw.py @@ -42,7 +42,7 @@ def _refresh_credentials_basic(flyte_client): auth_endpoints = _credentials_access.get_authorization_endpoints() token_endpoint = auth_endpoints.token_endpoint client_secret = _basic_auth.get_secret() - _logging.debug('Basic authorization flow with client id {} scope {}', _CLIENT_ID.get(), _SCOPE.get()) + _logging.debug('Basic authorization flow with client id {} scope {}'.format(_CLIENT_ID.get(), _SCOPE.get())) authorization_header = _basic_auth.get_basic_authorization_header(_CLIENT_ID.get(), client_secret) token, expires_in = _basic_auth.get_token(token_endpoint, authorization_header, _SCOPE.get()) _logging.info('Retrieved new token, expires in {}'.format(expires_in))