Skip to content

Commit

Permalink
Small log improvement (#110)
Browse files Browse the repository at this point in the history
* #108 ensure value not refence passed to closure

* added extra (debug) logging

* improved debug message on catch

* formatting

---------

Co-authored-by: John Whittington <git@jbrengineering.co.uk>
  • Loading branch information
ngolf and tuna-f1sh authored Aug 28, 2024
1 parent d6ded9d commit 1b99bea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openant/devices/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def _on_data(self, data):
year, month, day, hour, minute, second
)
except ValueError as e:
_logger.warning(f"Invalid date and time: {e}")
_logger.warning(f"Invalid date and time: {e}. Device {device} raw_data: {data}")

# run other pages for sub-classes
self.on_data(data)
Expand Down

0 comments on commit 1b99bea

Please sign in to comment.