Skip to content

Commit 082cd98

Browse files
romanzdkRoman Zydyk
andauthored
Log request URL with the Response headers (#952)
* Use logging instead of print * Add Request URL to the Response headers * Add Request URL to the Response headers --------- Co-authored-by: Roman Zydyk <roman.zydyk@quantlane.com>
1 parent dceb979 commit 082cd98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

polygon/rest/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ def _get(
125125

126126
if self.trace:
127127
resp_headers_dict = dict(resp.headers.items())
128-
logger.info("Response Headers: %s", resp_headers_dict)
128+
logger.info(
129+
"Request URL: %s, Response Headers: %s", full_url, resp_headers_dict
130+
)
129131

130132
if resp.status != 200:
131133
raise BadResponse(resp.data.decode("utf-8"))

0 commit comments

Comments
 (0)