Skip to content

Commit

Permalink
chore: improve docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Oct 30, 2023
1 parent ca2721e commit 38658ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions eventtracking/backends/event_bus.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

class EventBusRoutingBackend(RoutingBackend):
"""
Event tracker backend that emits an Open edX public signal.
Event tracker backend for the event bus.
"""

def send(self, event):
"""
Emit the TRACKING_EVENT_EMITTED Open edX public signal to allow
other apps to listen for tracking events.
Send the tracking log event to the event bus by emitting the
TRACKING_EVENT_EMITTED signal using custom metadata.
"""
if not SEND_TRACKING_EVENT_EMITTED_SIGNAL.is_enabled():
return
Expand All @@ -38,7 +38,7 @@ def send(self, event):
metadata = TRACKING_EVENT_EMITTED.generate_signal_metadata()

logger.info(
f"Sending tracking event emitted signal for event for {tracking_log.name}"
f"Sending tracking lof {tracking_log.name} to the event bus."
)
get_producer().send(
signal=TRACKING_EVENT_EMITTED,
Expand Down

0 comments on commit 38658ca

Please sign in to comment.