Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log events with no listeners #98540

Merged
merged 3 commits into from
Aug 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions homeassistant/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,9 @@ def async_fire(
match_all_listeners = self._match_all_listeners

if not listeners and not match_all_listeners:
if _LOGGER.isEnabledFor(logging.DEBUG):
event = Event(event_type, event_data, origin, time_fired, context)
_LOGGER.debug("Bus:Handling %s", event)
return

# EVENT_HOMEASSISTANT_CLOSE should not be sent to MATCH_ALL listeners
Expand Down