Skip to content

Commit 11682b4

Browse files
removed print statement
1 parent 09ef905 commit 11682b4

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/api/common/logging/event_utils.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@
1010

1111

1212
def track_event_if_configured(event_name: str, event_data: dict):
13+
"""Track custom event to Application Insights if configured.
14+
15+
Args:
16+
event_name: Name of the event to track
17+
event_data: Dictionary of event properties
18+
"""
1319
instrumentation_key = os.getenv("APPLICATIONINSIGHTS_CONNECTION_STRING")
14-
print(f"Instrumentation Key: {instrumentation_key}")
1520
if instrumentation_key:
1621
track_event(event_name, event_data)
1722
else:
18-
logging.warning(f"Skipping track_event for {event_name} as Application Insights is not configured")
23+
logging.warning("Skipping track_event for %s as Application Insights is not configured", event_name)

0 commit comments

Comments
 (0)