Skip to content

Commit 0af331d

Browse files
agnersmarcelveldt
andauthored
Cleanup: Lower "Activity on mDNS" message (#883)
Co-authored-by: Marcel van der Veldt <marcel.vanderveldt@nabucasa.com>
1 parent f29cc35 commit 0af331d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

matter_server/server/device_controller.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,13 @@ def _on_mdns_operational_node_state(
14811481
self._setup_node_create_task(node_id)
14821482
elif state_change == ServiceStateChange.Added:
14831483
# Trigger node re-subscriptions when mDNS entry got added
1484-
node_logger.info("Activity on mDNS, trigger resubscribe")
1484+
# Note: Users seem to get such mDNS messages fairly regularly, and often
1485+
# the subscription to the device is healthy and fine. This is not a problem
1486+
# since trigger_resubscribe_if_scheduled won't do anything in that case
1487+
# (no resubscribe is scheduled).
1488+
# But this does speedup the resubscription process in case the subscription
1489+
# is already in resubscribe mode.
1490+
node_logger.debug("Activity on mDNS, trigger resubscribe if scheduled")
14851491
asyncio.create_task(
14861492
self._chip_device_controller.trigger_resubscribe_if_scheduled(
14871493
node_id, "mDNS state change detected"

0 commit comments

Comments
 (0)