@@ -132,6 +132,13 @@ def __init__(
132
132
# max_download_threads
133
133
# Number of threads for handling cloud fetch downloads. Defaults to 10
134
134
135
+ logger .debug (
136
+ "ThriftBackend.__init__(server_hostname=%s, port=%s, http_path=%s)" ,
137
+ server_hostname ,
138
+ port ,
139
+ http_path ,
140
+ )
141
+
135
142
port = port or 443
136
143
if kwargs .get ("_connection_uri" ):
137
144
uri = kwargs .get ("_connection_uri" )
@@ -403,6 +410,8 @@ def attempt_request(attempt):
403
410
404
411
# TODO: don't use exception handling for GOS polling...
405
412
413
+ logger .error ("ThriftBackend.attempt_request: HTTPError: %s" , err )
414
+
406
415
gos_name = TCLIServiceClient .GetOperationStatus .__name__
407
416
if method .__name__ == gos_name :
408
417
delay_default = (
@@ -447,6 +456,7 @@ def attempt_request(attempt):
447
456
else :
448
457
logger .warning (log_string )
449
458
except Exception as err :
459
+ logger .error ("ThriftBackend.attempt_request: Exception: %s" , err )
450
460
error = err
451
461
retry_delay = extract_retry_delay (attempt )
452
462
error_message = (
@@ -904,6 +914,12 @@ def execute_command(
904
914
):
905
915
assert session_handle is not None
906
916
917
+ logger .debug (
918
+ "ThriftBackend.execute_command(operation=%s, session_handle=%s)" ,
919
+ operation ,
920
+ session_handle ,
921
+ )
922
+
907
923
spark_arrow_types = ttypes .TSparkArrowTypes (
908
924
timestampAsArrow = self ._use_arrow_native_timestamps ,
909
925
decimalAsArrow = self ._use_arrow_native_decimals ,
@@ -1090,6 +1106,7 @@ def fetch_results(
1090
1106
return queue , resp .hasMoreRows
1091
1107
1092
1108
def close_command (self , op_handle ):
1109
+ logger .debug ("ThriftBackend.close_command(op_handle=%s)" , op_handle )
1093
1110
req = ttypes .TCloseOperationReq (operationHandle = op_handle )
1094
1111
resp = self .make_request (self ._client .CloseOperation , req )
1095
1112
return resp .status
0 commit comments