Skip to content

Commit 0a559ee

Browse files
committed
Added some logging support
1 parent 74585f3 commit 0a559ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/databricks/sql/auth/retry.py

+2
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,8 @@ def should_retry(self, method: str, status_code: int) -> Tuple[bool, str]:
345345
if a retry would violate the configured policy.
346346
"""
347347

348+
logger.info(f"Received status code {status_code} for {method} request")
349+
348350
# Request succeeded. Don't retry.
349351
if status_code == 200:
350352
return False, "200 codes are not retried"

0 commit comments

Comments
 (0)