Skip to content

Commit 471f157

Browse files
committed
removed error logs logic
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
1 parent ee18d97 commit 471f157

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/databricks/sql/exc.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import json
22
import logging
3-
from databricks.sql.telemetry.telemetry_client import telemetry_client
43

54
logger = logging.getLogger(__name__)
65

@@ -12,22 +11,10 @@ class Error(Exception):
1211
`context`: Optional extra context about the error. MUST be JSON serializable
1312
"""
1413

15-
def __init__(
16-
self, message=None, context=None, connection_uuid=None, *args, **kwargs
17-
):
14+
def __init__(self, message=None, context=None, *args, **kwargs):
1815
super().__init__(message, *args, **kwargs)
1916
self.message = message
2017
self.context = context or {}
21-
self.connection_uuid = connection_uuid
22-
23-
try:
24-
error_name = self.__class__.__name__
25-
error_message = self.message_with_context()
26-
telemetry_client.export_failure_log(
27-
error_name, error_message, self.connection_uuid
28-
)
29-
except Exception as e:
30-
logger.warning(f"Failed to log error to telemetry: {str(e)}")
3118

3219
def __str__(self):
3320
return self.message

0 commit comments

Comments
 (0)