Skip to content

Commit

Permalink
Log effective reporting interval (#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
agners authored May 8, 2024
1 parent dbe7642 commit 975c701
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion matter_server/server/device_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,16 @@ def resubscription_succeeded(
# pylint: disable=protected-access
tlv_attributes = sub._readTransaction._cache.attributeTLVCache
node.attributes.update(parse_attributes_from_read_result(tlv_attributes))
node_logger.info("Subscription succeeded")

report_interval_floor, report_interval_ceiling = (
sub.GetReportingIntervalsSeconds()
)
node_logger.info(
"Subscription succeeded with report interval [%d, %d]",
report_interval_floor,
report_interval_ceiling,
)

self._node_last_seen[node_id] = time.time()
self.server.signal_event(EventType.NODE_UPDATED, node)

Expand Down

0 comments on commit 975c701

Please sign in to comment.