From 2e04ed05f90400df52e7d22c316ff1c37ab01d11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Mon, 1 Mar 2021 22:52:01 +0000 Subject: fslibre: add a debug log for the retrieved arresults. This just makes debugging a bit easier. --- glucometerutils/drivers/fslibre.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glucometerutils/drivers/fslibre.py b/glucometerutils/drivers/fslibre.py index 8b3b762..79025f6 100644 --- a/glucometerutils/drivers/fslibre.py +++ b/glucometerutils/drivers/fslibre.py @@ -21,6 +21,7 @@ https://protocols.glucometers.tech/abbott/freestyle-libre """ import datetime +import logging from typing import Dict, Generator, Mapping, Optional, Sequence, Tuple, Type from glucometerutils import common @@ -253,6 +254,7 @@ class Device(freestyle.FreeStyleHidDevice): # Then get the results of explicit scans and blood tests (and other # events). for record in self._session.query_multirecord(b"$arresult?"): + logging.debug(f"Retrieved arresult: {record!r}") reading = _parse_arresult(record) if reading: yield reading -- cgit v1.2.3