Skip to content

Commit bec62fd

Browse files
committed
logging
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
1 parent aebb46a commit bec62fd

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/databricks/sql/common/http.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,7 @@ def post(self, url: str, **kwargs) -> requests.Response:
149149
This is a blocking call intended to be run in a background thread.
150150
"""
151151
logger.debug("Executing telemetry POST request to: %s", url)
152-
try:
153-
return self.circuit_breaker.call(self.session.post, url, **kwargs)
154-
except CircuitBreakerError as e:
155-
logger.error("Circuit breaker error: %s", e)
156-
raise e
157-
except Exception as e:
158-
logger.error("Error executing telemetry POST request: %s", e)
159-
raise e
152+
return self.circuit_breaker.call(self.session.post, url, **kwargs)
160153

161154
def close(self):
162155
"""Closes the underlying requests.Session."""

0 commit comments

Comments
 (0)