Add debug logging for proactive caching regex failures

This commit is contained in:
Mondo Diaz
2026-01-30 18:43:09 -06:00
parent 80e2f3d157
commit cbea91a528

View File

@@ -551,7 +551,8 @@ def _cache_dependency_background(
matches = re.findall(sdist_pattern, html, re.IGNORECASE) matches = re.findall(sdist_pattern, html, re.IGNORECASE)
if not matches: if not matches:
logger.warning(f"PyPI proxy: no downloadable files found for {dep_name}") # Debug: log first 500 chars of HTML and the pattern we're looking for
logger.warning(f"PyPI proxy: no downloadable files found for {dep_name}. Pattern: {wheel_pattern}, HTML preview: {html[:500]}")
return return
# Get the last match (usually the latest version) # Get the last match (usually the latest version)