Add debug logging for proactive caching regex failures
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user