refactor: Optimize preview image handling by converting to webp format and improving error logging

This commit is contained in:
Will Miao
2025-04-11 11:17:49 +08:00
parent 31d27ff3fa
commit 56670066c7
3 changed files with 34 additions and 4 deletions

View File

@@ -439,7 +439,6 @@ class CheckpointsRoutes:
settings=settings, # Pass settings to template
request=request # Pass the request object to the template
)
logger.debug(f"Checkpoints page loaded successfully with {len(cache.raw_data)} items")
except Exception as cache_error:
logger.error(f"Error loading checkpoints cache data: {cache_error}")
# 如果获取缓存失败,也显示初始化页面