Skip to content

Commit 7a80559

Browse files
committed
Improve/add _logs_missing() debug logging
1 parent ea0dd04 commit 7a80559

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ def _logs_missing(self, from_timestamp: datetime) -> list[int] | None:
861861

862862
missing = []
863863
_LOGGER.debug(
864-
"_logs_missing | %s | first_address=%s, last_address=%s, from_timestamp=%s",
864+
"_logs_missing | %s | checking in range: first_address=%s, last_address=%s, from_timestamp=%s",
865865
self._mac,
866866
first_address,
867867
last_address,
@@ -933,6 +933,10 @@ def _logs_missing(self, from_timestamp: datetime) -> list[int] | None:
933933
return None
934934

935935
# We have an suspected interval, so try to calculate missing log addresses prior to first collected log
936+
_LOGGER.debug(
937+
"_logs_missing | %s | checking before range with log_interval=%s",
938+
log_interval,
939+
)
936940
calculated_timestamp = self._logs[first_address][
937941
first_slot
938942
].timestamp - timedelta(minutes=log_interval)

0 commit comments

Comments
 (0)