@@ -131,6 +131,13 @@ def __init__(
131
131
# max_download_threads
132
132
# Number of threads for handling cloud fetch downloads. Defaults to 10
133
133
134
+ logger .debug (
135
+ "ThriftBackend.__init__(server_hostname=%s, port=%s, http_path=%s)" ,
136
+ server_hostname ,
137
+ port ,
138
+ http_path ,
139
+ )
140
+
134
141
port = port or 443
135
142
if kwargs .get ("_connection_uri" ):
136
143
uri = kwargs .get ("_connection_uri" )
@@ -390,6 +397,8 @@ def attempt_request(attempt):
390
397
391
398
# TODO: don't use exception handling for GOS polling...
392
399
400
+ logger .error ("ThriftBackend.attempt_request: HTTPError: %s" , err )
401
+
393
402
gos_name = TCLIServiceClient .GetOperationStatus .__name__
394
403
if method .__name__ == gos_name :
395
404
delay_default = (
@@ -434,6 +443,7 @@ def attempt_request(attempt):
434
443
else :
435
444
logger .warning (log_string )
436
445
except Exception as err :
446
+ logger .error ("ThriftBackend.attempt_request: Exception: %s" , err )
437
447
error = err
438
448
retry_delay = extract_retry_delay (attempt )
439
449
error_message = ThriftBackend ._extract_error_message_from_headers (
@@ -888,6 +898,12 @@ def execute_command(
888
898
):
889
899
assert session_handle is not None
890
900
901
+ logger .debug (
902
+ "ThriftBackend.execute_command(operation=%s, session_handle=%s)" ,
903
+ operation ,
904
+ session_handle ,
905
+ )
906
+
891
907
spark_arrow_types = ttypes .TSparkArrowTypes (
892
908
timestampAsArrow = self ._use_arrow_native_timestamps ,
893
909
decimalAsArrow = self ._use_arrow_native_decimals ,
@@ -1074,6 +1090,7 @@ def fetch_results(
1074
1090
return queue , resp .hasMoreRows
1075
1091
1076
1092
def close_command (self , op_handle ):
1093
+ logger .debug ("ThriftBackend.close_command(op_handle=%s)" , op_handle )
1077
1094
req = ttypes .TCloseOperationReq (operationHandle = op_handle )
1078
1095
resp = self .make_request (self ._client .CloseOperation , req )
1079
1096
return resp .status
0 commit comments