Skip to content

Commit

Permalink
chore: update debug log for signal processing from event bus
Browse files Browse the repository at this point in the history
Co-authored-by: Tim McCormack <tmccormack@edx.org>
  • Loading branch information
Ian2012 and timmc-edx authored Feb 12, 2024
1 parent a617851 commit 576e123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openedx_events/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def general_signal_handler(sender, signal, **kwargs): # pylint: disable=unused-
# "topic_b": { "event_key_field": "my.key.field", "enabled": False }
# }"
if kwargs.get(SIGNAL_PROCESSED_FROM_EVENT_BUS) is True:
logger.debug(f"Signal already processed on the Event Bus {signal.event_type}, skipping...")
logger.debug(f"Declining to send signal to the Event Bus since that's where it was sent from: {signal.event_type} (preventing recursion)")
return

event_data = {key: kwargs.get(key) for key in signal.init_data}
Expand Down

0 comments on commit 576e123

Please sign in to comment.