Skip to content

Commit

Permalink
fix: date value in log to match text around it
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Aug 16, 2024
1 parent 194e442 commit c09702b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/palletjack/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c09702b

Please sign in to comment.