Skip to content

Commit 395049a

Browse files
committed
whywhy
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
1 parent 6ff07c8 commit 395049a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/databricks/sql/telemetry/telemetry_client.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,12 +539,24 @@ def initialize_telemetry_client(
539539
session_id_hex,
540540
flush=True,
541541
)
542+
else:
543+
print(
544+
"\n Session ID already in clients: %s",
545+
session_id_hex,
546+
flush=True,
547+
)
542548
print(
543549
"\nRELEASED: Telemetry client initialized: %s",
544550
session_id_hex,
545551
flush=True,
546552
)
547553
except Exception as e:
554+
print(
555+
"\nERROR: Failed to initialize telemetry client: %s due to %s",
556+
session_id_hex,
557+
e,
558+
flush=True,
559+
)
548560
logger.debug("Failed to initialize telemetry client: %s", e)
549561
# Fallback to NoopTelemetryClient to ensure connection doesn't fail
550562
TelemetryClientFactory._clients[session_id_hex] = NoopTelemetryClient()

0 commit comments

Comments
 (0)