From f8b08b823610631325f47bfaf4bf964eb9b8ce69 Mon Sep 17 00:00:00 2001 From: Vera Kahn Date: Mon, 20 Nov 2023 10:18:55 -0500 Subject: [PATCH] fix logging spacing --- src/nypl_py_utils/classes/oauth2_api_client.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/nypl_py_utils/classes/oauth2_api_client.py b/src/nypl_py_utils/classes/oauth2_api_client.py index e502136..c551bf3 100644 --- a/src/nypl_py_utils/classes/oauth2_api_client.py +++ b/src/nypl_py_utils/classes/oauth2_api_client.py @@ -49,7 +49,7 @@ def get(self, request_path, **kwargs): resp.message = 'Oauth2 Client: Bad response from OauthClient' resp.status_code = 500 self.logger.warning(f'Get request using path {request_path} \ - returned response text:\n{resp.text}') +returned response text:\n{resp.text}') # if client has specified that we want to retry failed requests and # we haven't hit max retries if self.with_retries is True: @@ -57,8 +57,7 @@ def get(self, request_path, **kwargs): if retries < 3: self.logger.warning( f'Retrying get request due to empty response from\ - Oauth2 Client using path: {request_path}. \ - Retry #{retries}') +Oauth2 Client using path: {request_path}. Retry #{retries}') sleep(pow(2, retries - 1)) kwargs['retries'] = retries # try request again