Skip to content

Commit 547d55b

Browse files
committed
Print status if not detected as error
1 parent 9ffaee4 commit 547d55b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/databricks/sql/thrift_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def attempt_request(attempt):
382382

383383
# We need to call type(response) here because thrift doesn't implement __name__ attributes for thrift responses
384384
logger.debug(
385-
"Received response: {}(<REDACTED>)".format(type(response).__name__)
385+
"Received response: {}(<REDACTED>) with status {}".format(type(response).__name__, getattr(response, "status", None))
386386
)
387387
unsafe_logger.debug("Received response: {}".format(response))
388388
return response

0 commit comments

Comments
 (0)