Skip to content

Commit c9f286b

Browse files
Merge pull request #25 from NYPL/main
fix logging spacing
2 parents cfe55c6 + 79b6d1b commit c9f286b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/nypl_py_utils/classes/oauth2_api_client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,15 @@ def get(self, request_path, **kwargs):
4949
resp.message = 'Oauth2 Client: Bad response from OauthClient'
5050
resp.status_code = 500
5151
self.logger.warning(f'Get request using path {request_path} \
52-
returned response text:\n{resp.text}')
52+
returned response text:\n{resp.text}')
5353
# if client has specified that we want to retry failed requests and
5454
# we haven't hit max retries
5555
if self.with_retries is True:
5656
retries = kwargs.get('retries', 0) + 1
5757
if retries < 3:
5858
self.logger.warning(
5959
f'Retrying get request due to empty response from\
60-
Oauth2 Client using path: {request_path}. \
61-
Retry #{retries}')
60+
Oauth2 Client using path: {request_path}. Retry #{retries}')
6261
sleep(pow(2, retries - 1))
6362
kwargs['retries'] = retries
6463
# try request again

0 commit comments

Comments
 (0)