Skip to content

Commit e004e79

Browse files
committed
Improve/add _logs_missing() debug logging
1 parent eeda206 commit e004e79

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
@@ -854,7 +854,7 @@ def _logs_missing(self, from_timestamp: datetime) -> list[int] | None:
854854

855855
missing = []
856856
_LOGGER.debug(
857-
"_logs_missing | %s | first_address=%s, last_address=%s, from_timestamp=%s",
857+
"_logs_missing | %s | checking in range: first_address=%s, last_address=%s, from_timestamp=%s",
858858
self._mac,
859859
first_address,
860860
last_address,
@@ -926,6 +926,10 @@ def _logs_missing(self, from_timestamp: datetime) -> list[int] | None:
926926
return None
927927

928928
# We have an suspected interval, so try to calculate missing log addresses prior to first collected log
929+
_LOGGER.debug(
930+
"_logs_missing | %s | checking before range with log_interval=%s",
931+
log_interval,
932+
)
929933
calculated_timestamp = self._logs[first_address][
930934
first_slot
931935
].timestamp - timedelta(minutes=log_interval)

0 commit comments

Comments
 (0)