Skip to content

Commit 947fcbf

Browse files
decode body bytes in logging
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent 0af5a75 commit 947fcbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/databricks/sql/auth/thrift_http_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def make_rest_request(
287287
# Make request using the connection pool
288288
logger.debug(f"making request to {full_path}")
289289
logger.debug(f"\trequest headers: {request_headers}")
290-
logger.debug(f"\trequest body: {body}")
290+
logger.debug(f"\trequest body: {body.decode('utf-8') if body else None}")
291291
logger.debug(f"\trequest params: {params}")
292292
logger.debug(f"\trequest full path: {full_path}")
293293
self.__resp = self.__pool.request(

0 commit comments

Comments
 (0)