Skip to content

Commit 784a2aa

Browse files
committed
Add more debug-logging
1 parent cd9a76c commit 784a2aa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ def _collect_pulses_from_logs(
248248
)
249249
return None
250250
if from_timestamp > self._last_log_consumption_timestamp:
251+
_LOGGER.debug(
252+
"_collect_pulses_from_logs | %s | rollover to new consumption interval | log_pulses=0",
253+
self._mac,
254+
)
251255
return (0, True)
252256
else:
253257
if self._last_log_production_timestamp is None:
@@ -257,6 +261,10 @@ def _collect_pulses_from_logs(
257261
)
258262
return None
259263
if from_timestamp > self._last_log_production_timestamp:
264+
_LOGGER.debug(
265+
"_collect_pulses_from_logs | %s | rollover to new production interval | log_pulses=0",
266+
self._mac,
267+
)
260268
return (0, True)
261269

262270
missing_logs = self._logs_missing(from_timestamp)

0 commit comments

Comments
 (0)