@@ -131,6 +131,8 @@ 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 (f"ThriftBackend.__init__(server_hostname={ server_hostname } , port={ port } , http_path={ http_path } )" )
135
+
134
136
port = port or 443
135
137
if kwargs .get ("_connection_uri" ):
136
138
uri = kwargs .get ("_connection_uri" )
@@ -390,6 +392,8 @@ def attempt_request(attempt):
390
392
391
393
# TODO: don't use exception handling for GOS polling...
392
394
395
+ logger .debug (f"ThriftBackend.attempt_request: HTTPError: { err } " )
396
+
393
397
gos_name = TCLIServiceClient .GetOperationStatus .__name__
394
398
if method .__name__ == gos_name :
395
399
delay_default = (
@@ -404,6 +408,7 @@ def attempt_request(attempt):
404
408
else :
405
409
raise err
406
410
except OSError as err :
411
+ logger .debug (f"ThriftBackend.attempt_request: OSError: { err } " )
407
412
error = err
408
413
error_message = str (err )
409
414
# fmt: off
@@ -434,6 +439,7 @@ def attempt_request(attempt):
434
439
else :
435
440
logger .warning (log_string )
436
441
except Exception as err :
442
+ logger .debug (f"ThriftBackend.attempt_request: Exception: { err } " )
437
443
error = err
438
444
retry_delay = extract_retry_delay (attempt )
439
445
error_message = ThriftBackend ._extract_error_message_from_headers (
@@ -1074,6 +1080,7 @@ def fetch_results(
1074
1080
return queue , resp .hasMoreRows
1075
1081
1076
1082
def close_command (self , op_handle ):
1083
+ logger .debug (f"ThriftBackend.close_command(op_handle={ op_handle } )" )
1077
1084
req = ttypes .TCloseOperationReq (operationHandle = op_handle )
1078
1085
resp = self .make_request (self ._client .CloseOperation , req )
1079
1086
return resp .status
0 commit comments