Skip to content

Commit

Permalink
Print number as a lazy progress indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Jan 15, 2025
1 parent 42e5b2b commit 04ba755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bittorrent-seeder/src/kiwixseeder/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ def add_books(self):
return

logger.info(f"Adding {len(to_add)} torrents…")
for book in to_add:
for num, book in enumerate(to_add):
if self.manager.add(book):
logger.info(f"Added {book!s}")
logger.info(f"{num}. Added {book!s}")
else:
logger.error(f"Failed to add {book!s}")

0 comments on commit 04ba755

Please sign in to comment.