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)