Skip to content

Commit 33e0cb5

Browse files
committed
TMP
1 parent 7091557 commit 33e0cb5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apricot/oauth/oauth_client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ def query(
140140
if use_client_secret
141141
else {}
142142
)
143+
log.msg(f"Making a request to {url} with {kwargs}")
143144
return self.request(
144145
url=url,
145146
method="GET",
@@ -169,7 +170,9 @@ def query_(*args: Any, **kwargs: Any) -> requests.Response:
169170
log.msg(str(exc))
170171
log.msg("Authentication token is invalid.")
171172
self.bearer_token_ = None
173+
log.msg(f"Making query with {args} {kwargs}")
172174
result = query_(*args, **kwargs)
175+
log.msg(f"result {result} {result.status_code}")
173176
if result.status_code == HTTPStatus.NO_CONTENT:
174177
return {}
175178
return result.json() # type: ignore[no-any-return]

0 commit comments

Comments
 (0)