@@ -131,6 +131,13 @@ def __init__(
131131 # max_download_threads
132132 # Number of threads for handling cloud fetch downloads. Defaults to 10
133133
134+ logger .debug (
135+ "ThriftBackend.__init__(server_hostname=%s, port=%s, http_path=%s)" ,
136+ server_hostname ,
137+ port ,
138+ http_path ,
139+ )
140+
134141 port = port or 443
135142 if kwargs .get ("_connection_uri" ):
136143 uri = kwargs .get ("_connection_uri" )
@@ -390,6 +397,8 @@ def attempt_request(attempt):
390397
391398 # TODO: don't use exception handling for GOS polling...
392399
400+ logger .error ("ThriftBackend.attempt_request: HTTPError: %s" , err )
401+
393402 gos_name = TCLIServiceClient .GetOperationStatus .__name__
394403 if method .__name__ == gos_name :
395404 delay_default = (
@@ -434,6 +443,7 @@ def attempt_request(attempt):
434443 else :
435444 logger .warning (log_string )
436445 except Exception as err :
446+ logger .error ("ThriftBackend.attempt_request: Exception: %s" , err )
437447 error = err
438448 retry_delay = extract_retry_delay (attempt )
439449 error_message = ThriftBackend ._extract_error_message_from_headers (
@@ -888,6 +898,12 @@ def execute_command(
888898 ):
889899 assert session_handle is not None
890900
901+ logger .debug (
902+ "ThriftBackend.execute_command(operation=%s, session_handle=%s)" ,
903+ operation ,
904+ session_handle ,
905+ )
906+
891907 spark_arrow_types = ttypes .TSparkArrowTypes (
892908 timestampAsArrow = self ._use_arrow_native_timestamps ,
893909 decimalAsArrow = self ._use_arrow_native_decimals ,
@@ -1074,6 +1090,7 @@ def fetch_results(
10741090 return queue , resp .hasMoreRows
10751091
10761092 def close_command (self , op_handle ):
1093+ logger .debug ("ThriftBackend.close_command(op_handle=%s)" , op_handle )
10771094 req = ttypes .TCloseOperationReq (operationHandle = op_handle )
10781095 resp = self .make_request (self ._client .CloseOperation , req )
10791096 return resp .status
0 commit comments