Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bellrichm committed Feb 19, 2023
1 parent 4632910 commit 1f7beb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/user/MQTTSubscribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -1923,6 +1923,7 @@ def new_loop_packet(self, event):
to_sorted_string(event.packet)))
target_data = self.subscriber.get_accumulated_data(queue,
start_ts, self.end_ts, event.packet['usUnits'])
self.logger.trace("Queue %s has data: %s" % (queue['name'], target_data))
event.packet.update(target_data)
self.logger.trace("Packet after update is: %s %s"
% (weeutil.weeutil.timestamp_to_string(event.packet['dateTime']),
Expand All @@ -1949,6 +1950,7 @@ def new_archive_record(self, event):
% (weeutil.weeutil.timestamp_to_string(event.record['dateTime']),
to_sorted_string(event.record)))
target_data = self.subscriber.get_accumulated_data(queue, start_ts, end_ts, event.record['usUnits'])
self.logger.trace("Queue %s has data: %s" % (queue['name'], target_data))
event.record.update(target_data)
self.logger.trace("Record after update is: %s %s"
% (weeutil.weeutil.timestamp_to_string(event.record['dateTime']),
Expand Down

0 comments on commit 1f7beb3

Please sign in to comment.