Skip to content

Commit 2f75c1f

Browse files
add request path to log
1 parent 95458d3 commit 2f75c1f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/nypl_py_utils/classes/oauth2_api_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ def get(self, request_path, **kwargs):
4848
resp = Response()
4949
resp.message = 'Oauth2 Client: Bad response from OauthClient'
5050
resp.status_code = 500
51-
self.logger.warning(f'Bad response text: {resp.text}')
51+
self.logger.warning(f'Get request using path {request_path} \
52+
returned response text:\n{resp.text}')
5253
# if client has specified that we want to retry failed requests and
5354
# we haven't hit max retries
5455
if self.with_retries is True:

0 commit comments

Comments
 (0)