[core] Do not show fetching metadata message unless there's data to fetch

This commit is contained in:
derrod 2021-12-03 17:14:45 +01:00
parent 20f934dc12
commit 1c8349a28e

View file

@ -420,6 +420,7 @@ class LegendaryCore:
# setup and teardown of thread pool takes some time, so only do it when it makes sense.
use_threads = len(fetch_list) > 5
if fetch_list:
self.log.info(f'Fetching metadata for {len(fetch_list)} apps.')
if use_threads:
with ThreadPoolExecutor(max_workers=16) as executor: