@@ -133,6 +133,13 @@ def __init__(
133
133
# max_download_threads
134
134
# Number of threads for handling cloud fetch downloads. Defaults to 10
135
135
136
+ logger .debug (
137
+ "ThriftBackend.__init__(server_hostname=%s, port=%s, http_path=%s)" ,
138
+ server_hostname ,
139
+ port ,
140
+ http_path ,
141
+ )
142
+
136
143
port = port or 443
137
144
if kwargs .get ("_connection_uri" ):
138
145
uri = kwargs .get ("_connection_uri" )
@@ -404,6 +411,8 @@ def attempt_request(attempt):
404
411
405
412
# TODO: don't use exception handling for GOS polling...
406
413
414
+ logger .error ("ThriftBackend.attempt_request: HTTPError: %s" , err )
415
+
407
416
gos_name = TCLIServiceClient .GetOperationStatus .__name__
408
417
if method .__name__ == gos_name :
409
418
delay_default = (
@@ -448,6 +457,7 @@ def attempt_request(attempt):
448
457
else :
449
458
logger .warning (log_string )
450
459
except Exception as err :
460
+ logger .error ("ThriftBackend.attempt_request: Exception: %s" , err )
451
461
error = err
452
462
retry_delay = extract_retry_delay (attempt )
453
463
error_message = (
@@ -914,6 +924,12 @@ def execute_command(
914
924
):
915
925
assert session_handle is not None
916
926
927
+ logger .debug (
928
+ "ThriftBackend.execute_command(operation=%s, session_handle=%s)" ,
929
+ operation ,
930
+ session_handle ,
931
+ )
932
+
917
933
spark_arrow_types = ttypes .TSparkArrowTypes (
918
934
timestampAsArrow = self ._use_arrow_native_timestamps ,
919
935
decimalAsArrow = self ._use_arrow_native_decimals ,
@@ -1150,6 +1166,7 @@ def fetch_results(
1150
1166
return queue , resp .hasMoreRows
1151
1167
1152
1168
def close_command (self , op_handle ):
1169
+ logger .debug ("ThriftBackend.close_command(op_handle=%s)" , op_handle )
1153
1170
req = ttypes .TCloseOperationReq (operationHandle = op_handle )
1154
1171
resp = self .make_request (self ._client .CloseOperation , req )
1155
1172
return resp .status
0 commit comments