Skip to content

Commit d1ed252

Browse files
committed
Revert debug-logging related changes
1 parent 88b008b commit d1ed252

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -841,12 +841,11 @@ def _logs_missing(self, from_timestamp: datetime) -> list[int] | None:
841841
if self._logs[address][slot].timestamp <= from_timestamp:
842842
break
843843

844-
_LOGGER.debug(
845-
"_logs_missing | %s | missing in range=%s", self._mac, missing
846-
)
847-
848844
# return missing logs in range first
849845
if len(missing) > 0:
846+
_LOGGER.debug(
847+
"_logs_missing | %s | missing in range=%s", self._mac, missing
848+
)
850849
return missing
851850

852851
if first_address not in self._logs:
@@ -880,11 +879,6 @@ def _logs_missing(self, from_timestamp: datetime) -> list[int] | None:
880879
calculated_timestamp = self._logs[first_address][
881880
first_slot
882881
].timestamp - timedelta(minutes=log_interval)
883-
_LOGGER.debug(
884-
"_logs_missing | %s | calculated timestamp=%s",
885-
self._mac,
886-
calculated_timestamp,
887-
)
888882
while from_timestamp < calculated_timestamp:
889883
if (
890884
address == self._first_empty_log_address

0 commit comments

Comments
 (0)