Skip to content

Commit 8a81854

Browse files
authored
feat: add request response logs for sync api calls (#1747)
1 parent 0744f8b commit 8a81854

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

google/auth/transport/requests.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ def request(
536536
remaining_time = guard.remaining_timeout
537537

538538
with TimeoutGuard(remaining_time) as guard:
539+
_helpers.request_log(_LOGGER, method, url, data, headers)
539540
response = super(AuthorizedSession, self).request(
540541
method,
541542
url,
@@ -544,6 +545,7 @@ def request(
544545
timeout=timeout,
545546
**kwargs
546547
)
548+
_helpers.response_log(_LOGGER, response)
547549
remaining_time = guard.remaining_timeout
548550

549551
# If the response indicated that the credentials needed to be

0 commit comments

Comments
 (0)