From c09702b836cea219ffaf84bf1c7533f09e3f8bf2 Mon Sep 17 00:00:00 2001 From: stdavis Date: Fri, 16 Aug 2024 09:41:45 -0600 Subject: [PATCH] fix: date value in log to match text around it --- src/palletjack/extract.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/palletjack/extract.py b/src/palletjack/extract.py index 8645d15..3995386 100644 --- a/src/palletjack/extract.py +++ b/src/palletjack/extract.py @@ -969,8 +969,9 @@ def _is_token_valid(self, token: dict[str, str]) -> bool: try: ticks = int(token["issued_at"]) issued = datetime.fromtimestamp(ticks / 1000) + days_from_today = (datetime.now() - issued).days - self._class_logger.debug("Token is {%s} days old", issued) + self._class_logger.debug("Token is %s days old", days_from_today) except ValueError: self._class_logger.warning("could not convert issued_at delta to a number %s", token)