Skip to content

Commit

Permalink
add timestamp log message to plan migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Belissimo-T committed Nov 17, 2023
1 parent eb66c43 commit 6692dcf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/plan_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ def update_plans(self, day: datetime.date, timestamp: datetime.datetime) -> bool
if (cur_ver := self.cache.get_plan_file(day, timestamp, ".processed")) == self.VERSION:
return False

self._logger.info(f"=> Migrating plan for {day!s} to current version... ({cur_ver!r} -> {self.VERSION!r})")
self._logger.info(f"=> Migrating plan for {day!s} {timestamp!s} to current version... "
f"({cur_ver!r} -> {self.VERSION!r})")
else:
self._logger.info(f"=> Processing plan for {day!s}...")
self._logger.info(f"=> Processing plan for {day!s} {timestamp!s}...")

self.compute_plans(day, timestamp)

Expand Down

0 comments on commit 6692dcf

Please sign in to comment.