Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2c37415

Browse files
committed
transport.py - permit debugging view of the API URL itself
download.py - annoying doubled up code from years ago - deprecated
1 parent f9dbd02 commit 2c37415

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

frameioclient/lib/download.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99

1010
# from .telemetry import Event, ComparisonTest
1111

12+
13+
"""
14+
DEPRECATED!!!
15+
"""
16+
17+
1218
logger = SDKLogger("downloads")
1319

1420
from .exceptions import (

frameioclient/lib/transport.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
from .utils import PaginatedResponse
1414
from .version import ClientVersion
1515

16+
import logging
17+
18+
logger = logging.getLogger(__name__)
1619

1720
class HTTPMethods:
1821
GET = "get"
@@ -112,6 +115,8 @@ def _api_call(
112115
method, self._format_api_call(endpoint), headers=headers, json=payload
113116
)
114117

118+
logger.debug(f"API URL: {r.url}")
119+
115120
if r.ok:
116121
if r.headers.get("page-number"):
117122
if int(r.headers.get("total-pages")) > 1:
@@ -129,7 +134,7 @@ def _api_call(
129134

130135
if isinstance(r.json(), list):
131136
return r.json()[:limit]
132-
137+
133138
return r.json()
134139

135140
if r.status_code == 422 and "presentation" in endpoint:

0 commit comments

Comments
 (0)