reduce log spam

This commit is contained in:
ArabCoders 2025-03-08 19:56:55 +03:00
parent e4794eda7c
commit 65e7d3e6fc

View file

@ -614,9 +614,9 @@ class DownloadQueue(metaclass=Singleton):
while True: while True:
if self.pool.has_open_workers() is True: if self.pool.has_open_workers() is True:
break break
if self.config.max_workers > 1 and time.time() - lastLog > 120: if self.config.max_workers > 1 and time.time() - lastLog > 600:
lastLog = time.time() lastLog = time.time()
LOG.info(f"Waiting for worker to be free. {self.pool.get_workers_status()}") LOG.info("Waiting for worker to be free.", extra={"workers": self.pool.get_available_workers()})
await asyncio.sleep(1) await asyncio.sleep(1)
while not self.queue.has_downloads(): while not self.queue.has_downloads():