Skip to content

Commit

Permalink
supressed log spaming, minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
mjishnu committed Jan 20, 2025
1 parent 9a95186 commit e1f50f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypdl/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ async def process_tasks(self, in_queue, out_queue):
self.logger.debug("Consumer %s started", self.id)
while True:
task = await in_queue.get()
self.logger.debug("Consumer %s received task", self.id)
if task is None:
break
self.logger.debug("Consumer %s received task", self.id)
try:
await self._download(task)
except asyncio.CancelledError:
Expand Down

0 comments on commit e1f50f9

Please sign in to comment.