Spaces:
Sleeping
Sleeping
Commit
·
10df67a
1
Parent(s):
bea8a00
fix logger
Browse files- LoadBalancer.py +1 -1
LoadBalancer.py
CHANGED
|
@@ -85,7 +85,7 @@ class LoadBalancer:
|
|
| 85 |
json_cache_path = os.path.join(self.CACHE_DIR, f"{urllib.parse.quote(original_title)}.json")
|
| 86 |
if not os.path.exists(json_cache_path):
|
| 87 |
tasks.append(fetch_and_cache_json(original_title, title, media_type, year))
|
| 88 |
-
|
| 89 |
|
| 90 |
# Run all tasks concurrently
|
| 91 |
await asyncio.gather(*tasks)
|
|
|
|
| 85 |
json_cache_path = os.path.join(self.CACHE_DIR, f"{urllib.parse.quote(original_title)}.json")
|
| 86 |
if not os.path.exists(json_cache_path):
|
| 87 |
tasks.append(fetch_and_cache_json(original_title, title, media_type, year))
|
| 88 |
+
logging.info(f"Skipping.. {original_title} metadata already cached")
|
| 89 |
|
| 90 |
# Run all tasks concurrently
|
| 91 |
await asyncio.gather(*tasks)
|