update login script and drastically reduce chattiness of debug logs for setups with a lot of subscriptions

This commit is contained in:
Alex Wolden 2025-05-12 22:52:13 -07:00
parent 8d805de78d
commit 68dda3aba2
2 changed files with 7 additions and 5 deletions

View file

@ -118,7 +118,6 @@ class EventDispatcher:
event = await self.queue.get()
logger.debug(f"Dispatching event: {event.type}, {event.payload}, {event.attributes}")
for subscription in self.subscriptions.copy():
logger.debug(f"Checking subscription: {subscription.event_type}, {subscription.attribute_filters}")
# Check if event type matches
if subscription.event_type is None or subscription.event_type == event.type:
# Check if all attribute filters match