Skip to content

Commit 9ba6cb3

Browse files
increase logging
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent 3542c5f commit 9ba6cb3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/databricks/sql/auth/thrift_http_client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,11 @@ def make_rest_request(
285285

286286
try:
287287
# Make request using the connection pool
288+
logger.debug(f"making request to {full_path}")
289+
logger.debug(f"\trequest headers: {request_headers}")
290+
logger.debug(f"\trequest body: {body}")
291+
logger.debug(f"\trequest params: {params}")
292+
logger.debug(f"\trequest full path: {full_path}")
288293
self.__resp = self.__pool.request(
289294
method,
290295
url=full_path,
@@ -317,12 +322,7 @@ def make_rest_request(
317322

318323
# Log response content (truncated for large responses)
319324
content_str = json.dumps(result)
320-
if len(content_str) > 1000:
321-
logger.debug(
322-
f"Response content (truncated): {content_str[:1000]}..."
323-
)
324-
else:
325-
logger.debug(f"Response content: {content_str}")
325+
logger.debug(f"Response content: {content_str}")
326326

327327
return result
328328

0 commit comments

Comments
 (0)